I am writing a GTK2 widget that shows images of all open windows. These images will update in real time.
To do this, I will use the X11 Damage extension. As far as I understand, the first step is to ...

I have an application that grabs X windows and hosts them as sub-windows.
It somehow implements a very basic window manager. No window manager is running.
Works well except for Java applications.
For ...

I have read 'Need for XEventsQueued(display, QueuedAfterReading) in XCB' but the answer specifies a function (xcb_poll_for_queued_event) that modifies the internal event queue. I need a function that ...

I'm trying to create a small window manager (just for fun), but i'm having problems in handling windows created by firefox (only with that application, other apps works fine)
The problem is, after i ...

I was trying to find all monitors and their coordinates (width w, height h, x origin/top-left-most x, and y origin/top-left-most y) and was using this code, it works good on some systems. But on other ...

I am using XGetImage to read the pixels of an OpenGL window. The XImage that is returned shows a depth of 24-bits, but my OpenGL context has alpha values that I would like to be returned. Is there any ...

Is there such thing as a standard file chooser (and file save) dialogs in X? If yes, what's the extension/request for invoking that? If no, does that mean that Qt, GTK, wxWidgets, etc. each implement ...

I'm just starting my first ever program using the X11 library. To start, I'm just trying to access the colors from the user's color-scheme as defined in xrdb. For example, in my ~/.Xresources I have ...

Can I have a window with alpha that I can click-through the 100% transparent portions of the window? I'm looking for a general solution not based on the shapes extension.
In Windows this is done by ...

Good morning everyone! I am trying to set and (later) delete a flag for a window in C++. No matter what I try to do, I continue to get compile errors and can't figure it out. Below are the relevant ...

Good afternoon everyone! I have been working on a project that requires a basic window without a titlebar. After browsing a bit on the web I came across this post create window without titlebar with ...

I tried to write a program which hooks keyboard messages to pronounce the name of each key whenever it is pressed in Ubuntu (KDE); without interfering with normal action of keyboard in programs (just ...

I had installed OpenGL and freeglut in Ubuntu 10.04 and it worked fine in 10.04 and 10.10. But after I upgraded to 11.04, the applications I've developed using OpenGL is not running properly. They're ...

I'm confused with XSetWMNormalHints and XSetWMSizeHints. I want to set my window non-resizable, and a call to XSetWMNormalHints does it properly. But if I call XSetWMSizeHints instead, nothing really ...

I'm looking to make some image superposition without merge the images with Xlib.
At the moment I'm using XShmPutImage to send my image to the X server.
In a previous version of my program, I already ...

So, I have an application in C++ that uses XLib. In it, i access the date and time using the ctime library, and in the Expose event, create a string from that and put it in the window, centered. My ...

The functions for the XTest extension for X11 can be found in libXtst.so. For some reason, this library also contains the functions for the XRecord extension. These seem like two separate concepts. Is ...

I have been studying lately OpenGL in university and searched on my own about Windows GUI programming in c++ like Qt. I even went deeper and found XLib for Windows GUI. But I still don't get the big ...