xlib Questions
1
Solved
i want to implement key chording on a normal keyboard and i thought i use python xlib.
for this to work the program has to globally swallow all keyevents and only later allow them to go through.
m...
2
Solved
I'm writing and OpenGL application on linux (Ubuntu 11.10) using Xlib (X11). What is the simplest way to implement toggle between windowed and fullscreen mode?
Sastruga asked 31/1, 2012 at 16:38
2
Solved
I want to get the RGB value of the top/left pixel (0;0) of the whole x11 display.
what I've got so far:
XColor c;
Display *d = XOpenDisplay((char *) NULL);
XImage *image;
image = XGetImage (d, R...
1
I want to know as to how do you detect if a key press event or a mouse pointer event has been generated by an (automation like) application like xdotool.
Basically, I am writing an application to c...
3
Solved
Is their a standard way to make a particular window borderless on Linux? I believe that the window border is drawn by your window manager, so it may be that I just need to use a particular window m...
Conduplicate asked 15/12, 2009 at 0:15
2
Solved
I'm Porting some code from Windows to XLib. In the windows code, I can force a redraw by calling InvalidateRect and then handling the corresponding WM_PAINT message. However, I am having trouble fi...
2
Solved
For educational purposes I've set out to write a python script using cwiid and Xlib so that I can use my wiimote like a mouse.
So far I've gotten the cursor to move by calling disp.warp_pointer(dx...
1
I'm writing a little native routine to notify another process that the user has changed the screen resolution. I tried using gtk but it's unstable on non composite window managers and crashes often...
2
Solved
I'm trying to create server-side RGBA pixmap from client side buffer. CreatePixmap & CreateImage work ok for 32 and 24 bit, but XPutImage result in Match Error returned by server
X Error of fai...
1
I'm wondering how to properly enable vsync with eglSwapBuffers when using xlib. It seems that calls to eglSwapInterval are simply ignored.
I'm running both in a windowed and full-screen mode. Is i...
8
Solved
Does anyone know an xlib function to trap a keypress event without losing the original focus? How to get rid of it?
(or "to use XGrabKey() without generating Grab-style focusout"?)
(or "How to ge...
1
Solved
I know it is possible to use Xlib and OpenGL together, with GLX (I've done it myself in C).
The problem is, how do I do this in python? The OpenGL module has GLX functionality [documentation], bu...
1
I was looking for some example of python xlib global keybinding that would work with gtk3, just as it is done for gtk2 at http://www.siafoo.net/snippet/239. Very similar code here:
from Xlib.displ...
2
Solved
I'm trying to write a window manager. (Actually, I have written an OS and a compiler, but that's beside the point.)
XLib and xcb aren't exactly nasty, at least not by, say, win32 standards, but th...
Acclaim asked 27/4, 2011 at 22:20
2
Solved
I want to embed two QWidgets into a window created using XLib. I have written this code:
// Assume all the necessary headers included
int main(int argc, char *argv[])
{
QApplication app(argc, a...
1
0
Please let me know if there is an OSD on-screen-display program or techinque for Xorg/Linux platform which can render XML in a much richer way than pango, at least support align attribute, an...
Ziguard asked 5/1, 2013 at 14:5
5
Solved
I am using GCC, what switches do I need to add to link with Xlib? After searching, all I could find was -lX11, but that gave me ld: library not found for -lX11
I am using a mac (10.6), but I would...
1
Solved
this is a sub-project of a much larger research project. I am trying to take screenshots of an active window (browser) every 100ms, which are then to be stored in memory for OpenCV processing. I fo...
6
Solved
I am surprised at the lack of response to all the xlib related question I've had on SO, is this because no one uses xlib directly anymore or is this the wrong place to ask these types of ques...
1
Solved
Is there a way to create a window with Xlib which only display the border lines, title, close button and that you can move with the mouse? The content of the window must be empty (or "totally trans...
Carner asked 15/11, 2012 at 10:4
5
Solved
On my home Kubuntu machine, I am running a script to beep on every keypress, no matter which window or application has focus, adapted from this insightful page
#!/usr/bin/env python
from Xlib.di...
Shogun asked 16/8, 2012 at 15:22
2
Solved
Using gdk_screen_get_monitor_geometry, I can get the total area in pixels and the relative position of each monitor, even when there are two or more used as a single screen.
However, I want to get...
2
Solved
I need to display a raw image in a QT widget. I'm running X11 on a framebuffer, so OpenGL is not available.
Both the image and the framebuffer are in the same format - RGB565, but I can change it...
1
How can I resize/move a window using python-xlib? I have the X window ID. What's the equivalent python-xlib snippet to wmctrl -i -r $id -e $gravity,$x,$y,$width,$height?
© 2022 - 2024 — McMap. All rights reserved.