xlib

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how? ...

"Correct" way to playback user movement with xlib?

I'm trying to figure out a way to make demos for a program I've written with xlib, and I came across this, but, according to the author page: This extension is not intended to support general journaling and playback of user actions. Does anyone know of any functions in xlib that are intended to support playback of user actions? Does i...

Xlib mouse events and ButtonPressMask

I have written a simple program which will report key press and release events for a particular window. In my case, it is mostly the terminal since I invoke the program from the terminal. I am able to get the key press and release events taking place in the terminal window (I have used XSelectInput() with KeyPressMask and KeyReleaseMask ...

Video decoding and rendering library for XLib

Currently what I have a Linux application that was written using Xlib and I needed to add video playing capabilities into it. What libraries would you recommend that I could use for video decoding and rendering that works well with Xlib? ...

Anti-aliased text in X11

I'm experimenting with Xlib to gain a deeper understanding of how Linux GUI programs work. I've written a simple program that display "Hello, world" in a window, but it looks rather anachronistic since the text is not anti-aliased. What is the best way to display anti-aliased text in X11? How is anti-aliasing implemented in GTK, Qt, and...

Borderless windows on Linux...

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 manager (that would be find, I'd just need to know which one)... My hope is that all the window managers might follow some standard that allows...

What do I need to do to link with xlib?

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 not like anything that is Mac specific. ...

Interposing library: XOpenDisplay

Hello, I am working on a project where I need to change the behaviour of the XOpenDisplay function defined in X11/Xlib.h. I have found an example, which should do exactly what I am looking for, but when I compile it, I get the following error messages: XOpenDisplay_interpose.c:14: Error: conflicting types for »XOpenDisplay« /usr...

Getting pid and details for topmost window

Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program name, etc. I'm using Qt under Linux (Ubuntu 9.10). ...

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 tries to call XvCreateImage(), and it results in the client terminating. X.0.log shows the following version information: X.Org X Server 1.6.4 Release Date: 2009-9-27 X Protocol Version 11, Revision 0 Build Operating System: Linux...

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...

Using Xlib via JNA to move a window

I'm using JNA to manipulate application windows on Linux by sending Xlib messages but can't seem to move a window. My original implementation executed wmctrl on the shell to move the windows and that successfully moved the windows. Unfortunately, there's a noticeable amount of overhead associated with calling shell programs from Java, s...

problem with dead keys (acute, diaeresis, etc) c++

Hi everyone: I'm currently writing my own virtual keyboard for linux using the X11 lib and i just can't find the way to simulate a KeyPress event of any dead keys. I'd tried , for example, to write "á" using the asigned macro, which is XK_aacute, and nothing happens. later i'd tried to send XK_acute (the acute accent macro) and then XK...

Python: how to switch between workspaces using Xlib?

Hi, how do I switch between my window manager's workspaces using Python with Xlib module? I've been searching Google the last couple of hours, and this is my most promising attempt: #!/usr/bin/python from Xlib import X, display, error, Xatom, Xutil import Xlib.protocol.event screen = Xlib.display.Display().screen() root = screen.r...

Top level window on X Window System

Hello, I want to print on the screen the information about Top level windows under Linux. I use the xlib functions. I successfully recurse from the root window to print all the informations about all the element on display. But I need only the Top-Level window. I don't find any good way to filter. From wikipedia : The top-level w...

Java bindiings for XLib

I'm looking for Java bindings for XLib. Specially, I need to be able to reparent an X windows application from within Java. Ideally I would like to do this by making the X windows calls directly from java. ...

How can I monitor mouse events with Python Xlib instead of capture them?

I need to monitor and filter mouse events with Xlib in Python. So far I have found out that this code receives events, but does not pass them on, so I can't actually do anything with the mouse anymore. from Xlib.display import Display from Xlib import X display = Display(':0') root = display.screen().root root.grab_pointer(True, X.Bu...

how can I get _NET_WORKAREA for seperate monitors

using gdk_screen_get_monitor_geometry (xrandr) I can get the resolutions for separate monitors (for example when there are 2 monitors used as a single screen like nvidias twinview) However _NET_WORKAREA seems to give one giant area even if the resolution of the other monitor is smaller. (a panel at the bottom of the second monitor woul...

X11, how to detect I’m the last window/application on the display

I have an x11 display with a windowmanager (sadly not a specific one, could be twm, dtwm, mwm, metacity …) , myApp and other applications with windows. I want to close the display if the other applications are closed and myApp is the only one with windows on the display. I do know the windows of myApp, but how do I distinguish between th...

Displaying Video4Linux frames with LessTif

Hi everyone, I have a simple test application (in C) that grabs mmaped frames from my v4l device. And now, I'd like to display these frames within a tiny LessTif application (like gnome cheese, but only displaying the frames - nothing else). Do you have an idea how to implement such a LessTif program? Thanks, Dan ...