x11

How to get the list of open windows from xserver

Anyone got an idea how to get from an Xserver the list of all open windows? ...

Is it possible to map a key press to simulate middle-click in xwindows?

Hey, I'm wondering, is it possible to somehow map a key-press event to act like a middle-key click of a mouse in Xwindows? They are diffrent devices, I know, but if there was a way to trigger a middle-button click event from a C program, it should be easy to bind a key to it using existing xwindows mechanisms. ...

In Vim, is there a way to copy the current line number into a buffer?

When using gdb and Vim, often I want to stop on a particular line. Normally in Vim I copy-paste the line number showing on the rule area to the gdb session. It'd save me a lot of hassle if I could use something like "+<magic-incantation> to copy the line number of the current cursor position into the xclipboard buffer. Is this possible? ...

Dump hidden (or minimized) X11 window

I'd like to dump the contents of an X window. Like this: xwd -id | convert - capture.png ... which works quite well as long as the target window is not hidden (totally or partially behind other windows) or minimized. Any idea on how to do this? I guess we somehow have to send a "repaint" signal to the hidden window and then capture ...

Cygwin X11R7.4 update support

I just got burned by the Cygwin X11R7.4 update and I find the official mailing lists hostile and clunky. So I thought I'd ask here. If you have survived the upgrade (or at least made progress on fixing things), what steps did you take to make things work? ...

embedding an application (in this case a terminal) within a QT application

Hello folks, I am writing a QT application and I need to embed a terminal (we say,xterm) within a QDialog, like some KDE application (see kdevelop/kate/...). I've been trying with: - QX11EmbedContainer placed into the QLayout of my QDialog - QProcess for the program I want to excecute I expect the QProcess running within the QX11Emb...

Does Java work with PCF fonts?

I am trying to make IBM jre to use PCF fonts from default X11 installation on my linux box. In particular adobe-helvetica font. I have toyed to modify fontconfig.properties in jre/lib folder but no matter what I do Java seams to use some other fonts. I guess there is some algorithm how java VM tries to link java logical fonts to actual p...

Swing JDialog slow when running remotely

I have experienced performance problems for JDialogs while running my GUI remotely over X11. Does anyone know a workaround? The GUI is fast when I run it on my local machine, but sometimes we need to run it on a remote server - which causes a significant lag until the dialog is displayed. It takes about 2 seconds to create and display t...

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

How do I get a Remote Desktop for Linux (XDMCP, VNC)

I do this all the time using VNC and it is very easy, but I am curious about a few things like XDMCP. As I understand it, this is a way of creating the entire desktop on a remote X-Server which seems fairly elegant. Several years ago, I worked on a Solaris server and multiple developers had X-Servers running in Windows and we were able ...

Is there any Spy++ equivalent for linux/x window?

Spy++ is a tool for windows that let the user spy on windows attributes, child windows and the message that it will process. It is handy utility to debugging UI related code. ...

Access X11 display from empty environment (bash)

Greetings! I am implementing a backup solution, and I need to access the X11 display for getting a password from the user and displaying status information. I have tried setting $DISPLAY in the script to :0.0 (hardcoded), but xhost and misc complain that they cannot open the display. What should I do? PS: The script is here: http://dpa...

X window forwarding?

How could I forward the X window output from a program under Linux (Debian Lenny)? Any suggestions and / or experience? The easiest way would be to restart the process with a new DISPLAY enviroment variable, but I don't want to take down the process at all. What I'd like is to change the X output to another machine "on the fly"... Appa...

Fake X11 display?

I have a Java program using AWT which I would like to run on a headless system. The display for the program does nothing other than display stats. When the program finishes, it exits. There is no user interaction on the display. The program creates an output file which I use in my build system. Is there a way to get the Java program to ...

Trying to get vncserver running on solaris: Fatal server error: could not open default font 'fixed'

I've looked at all the webpages and there are some good suggestions, but none has worked for me. Solaris sparc box, SunOS 5.10 Generic_120011-14 sun4u sparc SUNW,UltraAX-i2 The machine has openwin installed with symlinks from all of the usual X11 directories. xfs is running and all the font directories are there, I ran mkfontdir and f...

ssh and window ids

I have a project to do in school which is baffeling me... I am SSHing into a Solaris computer in the computer lab from my own Debian box via ssh -Y name@***.cs.<school> I can get in just fine, and the X11 seems to be working also. However, this peticular project requires us to find the window id of a netscape window via xwininfo and...

Is it possible to pass the X Display name to the JVM

Is it possible to specify which X display the JVM is to launch it's windows on through the JVM? I am thinking something like this java -DISPLAY=THE_DISPLAY_I_WANT:0.1 -jar my.jar I looked at the man pages and I can't find anything. or do I need to wrap my call to the jvm in a shell script like this #/bin/sh export DISPLAY=THE_DISPL...

How to write an X11 app that follows the cursor

I'd like to write a Linux screen magnifier that's customized to my liking. Ideally, the magnified window would be a square about 150 pixels wide that follows the mouse cursor wherever it goes. Is it possible to do this in X11? Would it be easier to have an application window that follows the mouse around, or would it be better (or possi...

Finding X11 window dimensions?

Looking at my Firefox window today, I realized that I don't know any reasonably simple way to find out just how wide it is. I run my desktop at 1920x1200, and Firefox is hardly more than two-thirds of that width. This is actually sort of a generally-useful question. Some quick searching around doesn't reveal any simple tools to do this ...