x.org

The guide to X window system

The X window system (and its popular implementation X.org) is amazing and complex too - client server model, forwarding the display to other systems, support for wide array of devices, primitive drawing functions. Moreover, the many ways to configure. However there is no definitive guide to it which can teach it hands on. Can you please...

Programmatically determining individual screen widths/heights in Linux (w/Xinerama, TwinView, and/or BigDesktop)

I'm developing a little side-project to display multiple wallpapers on multiple screens under GNOME (something that apparently can't be done by GNOME itself or anything else). I've figured out how to do the main part of it (using the ImageMagick components, for the curious); I'm trying to automate the configuration system. To do that, I...

Grabbing the X server with XGrabServer

In an embedded Linux system, I'm trying to show a shutdown notification that should override any other windows when shutting down. Now creating the window isn't a problem, but showing the window reliably is. The X server or WM is somehow too busy to draw the notification every time. Considering the limited CPU power we have, its not surp...

X-server for Windows CE

Hi folks, I'm trying to run an app from a remote X session (Ubuntu, 9.04) on a handheld device powered by Windows Mobile. I want to do this by running an X-server of some description on the mobile device and using SSH/PocketPuTTY or similar for a tunnel, as you'd do it on a standard PC/Mac. Can anyone pls. point me in the direction of ...

Python/Linux - A function callback every time a key is pressed (regardless of which window has focus)?

I want to write a programme (in python) on Linux (Ubuntu Linux 9.10) that will keep track of how many key presses per second/minute I make. This includes normal letter keys, and control/shift/space/etc. Is there some way to hook into X so that I can say "when a key is pressed call this function?". Since I want to have this running in th...

xlib integrated debugging (Tracing)

Hello Is there any debugging options built-in in the Xlib (libX11.so)? Can I get list of X11 lib calls? I want to get full trace of xlib function calls from heavy-multithreaded, closed-source program. It is one not-public embedded platform, so I can't use gdb for multithreaded debugging and there is no ltrace on the platform. Also, thi...

X11: wait until a requested event is finished.

I want to resize some window with XResizeWindow(display, xid, width, height), which was created by another application and wait until it is really resized. XSync(display, 0) does not work. Any suggestions? ...

Xlib: XGetWindowAttributes always returns 1x1 ?!

I'd like to have width and height of the currently focussed window. The selection of the window works like a charm whereas the height and width are always returning 1. #include <X11/Xlib.h> #include <stdio.h> int main(int argc, char *argv[]) { Display *display; Window focus; XWindowAttributes attr; int revert; disp...