Top "Xlib" questions

Xlib is a library used to communicate with X11 servers.

How to identify top-level X11 windows using xlib?

I'm trying to get a list of all top level desktop windows in an X11 session. Basically, I want to …

c++ x11 xlib icccm ewmh
How do I gracefully exit an X11 event loop?

Almost every tutorial I find tells me to do this for my event loop: XEvent event; while (true) { XNextEvent(display, &…

c linux x11 xlib
Get display count and resolution for each display in Python without xrandr

I'm running Ubuntu and I want to get the number of attached displays, their current resolution and, if possible, their …

python xlib
X11 Mouse Movement Event

When creating a Window in XLib What are the masks I provide to the SetWindowAttributes.event_mask member? What do …

c linux x11 xlib mousemove
Fatal IO error 0 (Success) on X server

What does the error "Fatal IO error 0 (Success) on X server" mean? The error is produced when an X client …

x11 xlib
Cannot call XInitThreads

I have written an SFML C++ game, and tried to start using threads, but after a while everything crashes. After …

c++ sfml xlib
Undefined reference to XOpenDisplay in a Qt project

Now I am feeling quite stupid. I am trying to do some stuff with xlib in Qt Creator. My code: #…

c++ qt xlib
How to fix error Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specified\n'

I'm making some program with python3 and XLib. On my PC with Ubuntu 14.04 everything works fine but when I try …

python xlib
Borderless windows on Linux

Is their a standard way to make a particular window borderless on Linux? I believe that the window border is …

linux window xlib borderless
Window position in Xlib

How to get top-level window position relative to root window (i.e. whole screen) using plain ol' xlib (or brand …

x11 xlib xcb