xorg

Xorg loading an image

I'm starting to code up my own window manager, and was wondering how to use the xorg api to get from raw image data ( such as the data given by libpng ), into an Xorg Pixmap or something drawable by Xorg? ...

Is there a simple way to detect mouse or keyboard activity in Linux/Xorg/Qt4/Kde4?

Is there a simple way to detect mouse or keyboard activity in Linux or Xorg or Qt4 or Kde4 environment? Obviously not only on a particular window but in the entire Xorg desktop. Thanks for the help. ...

Linux: Fastest way to draw

I need to draw an 2d-array of color triplets on the screen, what is the fastest way of doing that? The target language is C/C++ and the program has only to work on Linux, but platform independant solutions are preferred obviously. I run Xorg, XVideo and OpenGL are available. How many FPS can I expect on 1024x768 on an Intel Core 2 Duo ...

Remote X session is slow [centos5]

Okay, I've scoured google and I haven't found an answer for this. Not exactly programming related unless I was trying to use an ide over the session... I have servers at the same remote location; one is older running fedora 4 (P4 3.0Ghz) and a couple of newer server running Centos5 (Quad Xeon 1.6). I can run a remote X session on bo...

GTK applications fail to start - xfs restart needed Options

Sorry, not really programming question, but I am not sure where else I could find some help. After a recent update (Xorg was updated among other things), GTK apps stopped running in my kde4. I have a Debian unstable, updated around 22 April. When I try to run them I get the following error: ga@grzes:~$ iceweasel The program 'firefox-...

Warcraft III + wine + automatic battle.net logon

I need a little bash script which will send keyboard strokes to current running application under linux. This application runs under wine in Xorg. I'm trying to create script to automatically log me into battle.net account in Warcraft 3 game. ...

XDeviceInfo.use values that aren't in the XInputExtension spec

The XInput specification defines three use values for the XDeviceInfo structure. They are: IsXKeyboard IsXPointer IsXExtensionDevice These roughly equate to (if I'm reading the XInput spec correctly): Device is being used for core keyboard events Device is being used for core pointer events Device is available as an extension devic...

Sending keycode to Xorg + wine with bash script

How do I send keycode to currently running application in linux which is running under wine? I would like the it to be under bash for simplicity. ...

How do I obtain, and synchronize, a complete list of all X11 windows?

I want to monitor all the open windows under X11. Currently, I'm doing this as follows: Initially walking the whole tree by recursively calling XQueryTree from the root window Listening for substructure changes on the whole desktop: XSelectInput( display, root_window, SubstructureNotifyMask | PropertyChangeMask ) Handling all MapNo...

How to distinguish Xsun from Xorg, programmatically?

VendorString() doesn't work, it's always Sun Microsystems, even if it is Xorg built for Solaris. ...

What is wrong with my X11 code?

I am attempting to get the X Window at a certain location on screen. When I asked people for a function to do this, they said you would just call XQueryTree recursively. This is the code snippet which I think is somehow wrong. When I debug it, it seems to work perfectly. The only problem is that the output it gives seems a little str...

X11 changing value of whitepixel

I have hardware which has an overlay buffer as fb and another buffer which renders video (analog video in like TV). z order with first video and on top of it fb rendered through cairo, agg library based application. The overlay buffer take one color key which is made transparent. I want to make my White pixel to be that color (say I con...

How do I enumerate all available keyboard layouts in X.org?

I have a device that outputs a limited number of keycodes (for example a keyboard-wedge barcode scanner) and I want to know what those keycodes will type on all possible keyboard layouts. I'd like to write an X11 client that sets the keyboard layout to each installed keymap and then records the Unicode received for each keypress from the...

How do I map an X11 keysym to a Unicode character?

X11 maps keycodes to keysyms and then maps keysyms to Unicode. What's a good way to retrieve keysym to Unicode mappings in a program? ...

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

Why does X choke after I draw to the root window.

For background, I'm running Debian Lenny, and have tried this with both GNOME and Fluxbox. Anyway, I've been looking at how to draw on the desktop, and I found and tried this code here: http://blog.prashanthellina.com/2007/08/24/drawing-on-your-desktop/ It worked fine, except upon terminating it (by hitting control C), X loses it's abi...

Emacs and toggle-input-method

Is there any chance to change in Emacs 23.1.1 a keybinding for (toggle-input-method) to <Meta+Shift> or <Alt+Shift> (because I use <Alt> as <Meta>)? This, obviously, doesn't work: (global-set-key [(meta shift)] 'toggle-input-method) Thanks in advance. ...

Java inputevents not firing for some period in linux (java/xorg issue??)

I'm writing a 2D game in Java and I have a problem with input events (mouse, keyboard) not firing when they should. It works as expected in win2k & xp. As it's a game, I have a main loop which Coalesces input events (various listeners populating buffered state) Advances the scene Renders the scene Waits if necessary to maintain stable...

Linux/Xorg: setting color brightness

Hi all. Is there any command (or API) to set X.Org/Linux color brightness? In other words, I need something as handy as the xgamma command but for changing RGB brightness real-time. Is this possibile? Thanks in advance. ...

Xorg drivers, Mesa drivers and Kernel drivers, how this relationship?

I have this email >> Hi foks, I have compiled Mesa Cell driver, and it is great! can I use this, rather than ps3fb for video driver? thanks so much and sorry my bad english. answer > No. The ps3fb driver and Mesa Cell driver are totally different things. -Brian another question. Hi, thanks for yo...