x11

use python to get xcursor graphics?

I would like to use python to access the system cursor graphics (Xcursor files, I believe). Unfortunately, I do not know enough X to know how to do that. Any suggestions? ...

best way to work on / debug Xorg server modules

Hi, I want to work on an Xorg server module and I am wondering how I can reload the module at runtime. Also, maybe someone can give me some good tips about doing this (because I never have worked with Xorg server code before). Esp. I am running the Ubuntu version of Xorg 7.5 (if that matters much -- does it?). What I want to do s...

Xlib event when window is moved from one workspace to another

I want to know the event name of application moving from one workspace to another using Xlib. ...

How to get raw mouse events with XI2 extension?

I'm using XISelectEvents for root window with deviceid=XIAllDevices and mask=XI_RawMotion, but I don't get any events. What's wrong? ...

How to create a window with a bit depth of 32

Hi, I'm trying to create a X11 window with a bit depth of 32 so that I can use ARGB colors. Here's what I do: XVisualInfo vinfo; int depth = 32; XMatchVisualInfo(dpy, XDefaultScreen(dpy), depth, TrueColor, XCreateWindow(dpy, XDefaultRootWindow(dpy), 0, 0, 150, 100, 0, depth, InputOutput, vinfo.visual, 0, NULL); Here's what happe...

groovyConsole X11 error while startup

I am perl, python guy and new to java and groovy. I am getting this error while running groovyConsole groovy is working fine. myhome:~/gscripts # groovyConsole java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAc...

X11: How to rotate the gravity/orientation to 90 degrees

Hello, I need to know is it possible to rotate the orientation of all X-based apps to 90 degrees. Without modifying their sources. I guess X11 should have some configuration option for this. So how to do this ??? Regards, Levon ...

Touch screen relative coordinates

Hello, I've rotated X environment with xrandr -o left|right|inverse|normal on touch screen device. Everything is working OK beside touch. When moving finger on the screen, it takes absolute coordinates of finger and moves cursor in opposite direction if the rotation is inverse. So if I slide up actually it slides down. So is there a way...

How to attach X11 app to Dbus.

Hello, How to make X11 application to listen to DBus signal. That to listen to Dbus signal gmainloop should be launched, and for X11 app XEvent loop. So is there an elegant way to do this ? Or do I have to run gmainloop in another thread. Regards, Levon ...

Get available X11 video modes without extensions

I've been searching around and can't find a solution for this. The official NVIDIA Tegra 2 Linux SDK (L4T) doesn't include both XRandR or the VideoMode X11 extension for querying available video modes. My next thought was to parse the log file for video modes. Of course most of the time it's at /var/log/Xorg.0.log but I'd rather not al...

MacOS X TrueType fonts with X11

Is there a simple way to install TTF fonts on macos X so that they work with X11 (and Gimp) ? ...

X11: How to make the application to be on top

Hello, Situation I'm using matchbox keyboard which is X11 based application. When any application is in full screen mode matchbox keyboard cannot be visible as the full screened application is on TOP. So is there a way to launch X11 based application over full screened applictions ? Regards, Levon ...

How can I draw a selection rectangle on the screen with Qt?

Hello, How can I draw a selection rectangle on my screen with Qt in X11? I want to be able to drag a rectangle on my screen (outside of the application) and then save the whole rectangle. Thanks in advance. ...

Excluding some keys from XGrabKeyboard

Consider an application where it's desirable to grab the keyboard when focused in order to capture all window manager commands (Alt+F4 and whatnot) for processing. Now, this has the downside that the user has no way of switching to another application or virtual desktop via the keyboard when the keyboard is grabbed. I'd like to have a us...

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 new XCB)? ...

Preventing window overlap in GTK

I've got a Python/Linux application that displays bits of info I need in a GTK window. For the purposes of this discussion, it should behave exactly like a dock - exists on all virtual desktops, and maximized windows do not overlap it. The first point is pretty easy, but I have spent days bashing my head against my monitor trying to ...

how to start a keymap project

I have take a try dvorak keyboard layout, and i also taked a look of programmers dvorak and colemak layout. But what I'd like create a new layout, which is more better in code and *nix. I've do some statistic from many codes include java,python,ruby,php,c,js, and get a result of which key use most, which symbol use most, which number us...

what do you think about this keyboard layout for programmers?

I have start a project to redefine keyboard layout for coders.under GPLv3 The most popular layout is qwerty, then dvorak, then colemak. but qwerty and dvorak is design for typewriter, and colemak is design for easy to learn. but this layout is design for coders. 5~ 3! 1@ 0$ 29 48 67 #` *^ y w x q Tab (\ c d .< ,>...

How to cross-compile Qt X11?

I have been trying to get Qt X11 cross compiled for PowerPC for a while now and kept having various problems. From the information given my Qt support, all one needs to do is: Create a new mkspec Copy an existing directory in mkspec/ I used linux-g++ and modified it. Modify qmake.conf to use your toolchain, libraries and includes R...

Control cursor with c++ and x11

What x11 header file and function would I use to change the position of the cursor on the display? I have heard there is a straight forward function on Vc++ but I wish to be able to use this on linux. ...