x11

Help getting Conky to work with LXDE & PCManFM

As some of you might be aware, there's a bug with either Conky or PCManFM (the desktop manager aspect of it) that makes the Conky window disappear in one of these situations: Setting "own_window_type override" in .conkyrc (the usual configuration for Nautilus) flat out doesn't show the Conky window at all. Setting "own_window_type desk...

Simulate keypress in a Linux C console application

Is there any way to simulate a keypress in Linux using C? In my specific situation, I'm on Ubuntu 9.04 and need a simple app that invokes a press on the "pause" button when launched. That would get an iframe in Firefox to refresh using Javascript. ...

Does Mac X11 have the XTEST extension?

So I moved some X programs down to the mac, and I'm getting Error: XTEST extension unavailable on '(null)'. from xdotool. Does OS X X11 come with XTEST? If not, is there a way to add it? ...

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

X11: waiting until a window is visible?

I'm running X across a slow network connection. How can I tell when a window has become visible? I need to wait so that I can perform another operation on the visible window. xterm -T foo & # how to flush the display, or wait until the window is visible? # polling the visibility would be acceptable as well xmovewindow foo 10 20 upd...

Create GLX context in specific region of a window

I would like to create an OpenGL context with GLX inside a window. However, I do not want it to span over the whole window region. Instead, it should only cover a subregion. For example, GLUT provides a function for this behaviour. Also major toolkits like GTK+ or QT provide GL widgets, which are only subregions of X windows. However I ...

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

Emacs 23 fails to send Unicode combining diacritics through XWin -clipboard

Emacs 23 is running on a remote Linux box. It displays its frame on this local Windows box, using Cygwin's X server. I used to be able to copy-paste any text from Emacs to any Windows application. Since after I upgraded from release 22 to 23, combining diacritics don't come through any more. Non-combined characters pass unharmed. Fo...

How to tell if a full-screen application is running?

Is it possible in python to tell if a full screen application on linux is running? I have a feeling it might be possible using Xlib but I haven't found a way. EDIT: By full screen I mean the WHOLE screen nothing else but the application, such as a full-screen game. ...

Running X11 Server on MacOS X - and connecting from a remote machine

Question now asked on SU. I have a Windows XP laptop, and I can run the Cygwin X11 server on there (script startxwin.bat, IIRC). I also use a remote machine - it happens to be a Solaris 10 SPARC machine, about 1800 miles away - that can be called xclient.subdom2.example.com for the purposes of this question. For better or worse - most...

Vim copy-paste to system buffer not behaving as expected

I'm having a headache trying to figure out why vim isn't copying to a system buffer. Here's my workflow: vim asd y1y :q vim qwe p On computerA and computerB, this works as I want it to: the line yanked from the file asd is put into the file qwe. On computerC, this doesn't work. All systems are running Ubuntu 8.04. computerA has th...

(C++) MessageBox for Linux like in MS Windows

Hi, I need to implement a simple graphical message box for a Linux (SDL) application similar to the Windows MessageBox in C++ (gcc/g++ 4.4.0). All it needs to do is to display a caption, a message and an ok or close button and to return to the calling function when that button is clicked. SDL just uses X(11) to open a window for (OpenG...

Create a Motif widget from the handle XCreateWindow returns

Is it possible to create or derive a Motif widget using the return value of XCreateWindow, so that I can use that widget as parent for calls to Motif functions (like XmCreateErrorDialog)? If yes, how do I do that? ...

(Ruby || Python) window manager.

I want to make a window manager in either of these languages (Preferably ruby). I honestly have no idea where to start except that I will need some kind of X module to load. So if anyone has a clue it would be great if you could point me in the right direction. Thanks ...

Help: Maximum number of clients reached - Segmentation fault

I want to simulate many key press events. I found a solution by using XTestFakeKeyEvent, but when I simulate more than 210 times my program raises a "Maximum number of clients reached" segmentation fault. I don't known how to solve this problem. My code here: #include <X11/Xlib.h> #include <X11/keysym.h> #include <X11/extensions/XTest....

Keep QPixmap copy of screen contents using X11, XDamage, XRender, and other tricks.

Hi, I'm attempting to solve what I thought would be a very simple problem. I want to keep a QPixmap updated with the entire screen contents. You can get such a pixmap by doing this: QDesktopWidget *w = QApplication::desktop(); if (w) { QRect r = w->screenGeometry(); QPixmap p = QPixmap::grabWindow(w->winId(), 0, 0, r.width(), r...

OpenGL / X-Window program hangs during Window creation

Hi! I've got a C/C++ app using the GLFW Library on a netbook-like device running Ubuntu 8.10. As far as I understand the source the GLFW lib, it creates its window using calls to the X-Window library. We do not use any desktop on the machine but login to a tty and start a X-server in the background. When running the compiled applicat...

which package in ubuntu contains the header file X11.h?

which package in ubuntu has the header file x11.h? thanks in advance ...

Creating an "overlay" onto a window

Is it possible to create a window that acts as an overlay on top of another window, say, an icon that you can display in the window's title bar or status bar? Assume for the purposes of this question that: The window is a foreign window (not owned by my application) The overlay is 16x16 pixels and has a transparent background The over...