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...
Milfordmilhaud asked 4/8, 2013 at 1:39

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...
Sekofski asked 8/7, 2013 at 2:59

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...
Tanishatanitansy asked 28/6, 2013 at 11:14

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...
Closer asked 10/6, 2013 at 15:55

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...
Dogwatch asked 21/4, 2012 at 7:5

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...
Evanescent asked 3/6, 2013 at 23:32

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...
Hop asked 8/5, 2012 at 3:46

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...
Rhinencephalon asked 15/8, 2012 at 15:9

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...
Dyandyana asked 7/3, 2013 at 11:48

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...
Dubois asked 18/2, 2013 at 9:58

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...
Pachyderm asked 17/5, 2012 at 17:34

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...
Crazy asked 10/4, 2012 at 13:1

1

I want to draw some primitives on top of all windows on the screen. I've found some code in C and tried to port it to use python's xlib: from Xlib.display import Display from Xlib import X from Xl...
Context asked 7/1, 2013 at 16:59

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...
Absorber asked 31/12, 2009 at 1:15

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...
Flynt asked 30/11, 2012 at 14:23

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...
Haze asked 5/3, 2009 at 3:18

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...
Torrens asked 8/4, 2010 at 8:50

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...
Reiss asked 14/9, 2011 at 2:9

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?
Lillylillywhite asked 20/6, 2012 at 19:40

© 2022 - 2024 — McMap. All rights reserved.