xlib

Place a Window behind desktop icons using PyQt on Ubuntu/GNOME

Place a Window behind desktop icons using PyQt on Ubuntu/GNOME Question: I’m trying to develop a simple cross-platform Wallpaper manager, but I am not able to find any method to place my PyQt Window between the current wallpaper and the desktop icons using XLib (on windows and macOS it’s way easier and works perfectly). This …

Total answers: 1

How to fix error Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specifiedn'

How to fix error Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'No protocol specifiedn' Question: I’m making some program with python3 and XLib. On my PC with Ubuntu 14.04 everything works fine but when I try to run my app in my notebook with manualy installed Xorg I get exception: Xlib.error.DisplayConnectionError: Can’t connect to display “:0”: …

Total answers: 5

Why XGrabKey generates extra focus-out and focus-in events?

Why XGrabKey generates extra focus-out and focus-in events? Question: 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 get rid of NotifyGrab and NotifyUngrab focus events at system level?) The XGrabKey …

Total answers: 8