x11

New applications open in wrong x screen in Ubuntu

I have a dual monitor setup and each has its own x screen in Ubuntu 9.04. Everything works as it should in screen 0. When I open an application in screen 1 (using any menu, e.g., Applications, Places, etc.), it opens in screen 0 instead of screen 1. So to get an application to open in screen 1, I hit - and type the program name. This al...

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

Running XWindow programs in Cygwin

I installed all the necessary packages for running GUI programs in Cygwin. Right now, I have to do these things to launch an XWindow program: 1) /bin/startxwin.sh 2) It starts a separate window (the X Window?) 2) In that X Window, ssh -X user@server (this is the remote box where I want to run that box's programs) 3) Then in that X Wi...

Unable to have full-screen in Mac's Xmonad

I installed the newest X11. I run the following command unsuccessfully after sourcing ~/.profile $exec /usr/X11/lib/X11/xinit/xinitrc I get a message Screen is terminating and I do not see any evidence of XMonad. I run the command the second time, and I get zsh: permission denied: /usr/X11/lib/X11/xinit/xinitrc Process completed...

How to display java swing on X11 when running on Mac

I would really like to be able to run our test suite on Xvfb so that swing windows don't keep popping up in the way of my work. Unfortunately I cannot seem to find a way to get the java runtime to use the display specified in the DISPLAY environment variable. I suppose this is because the Mac JDK is hardwired to use the (non-X-based) Mac...

Unable to find logFiles to see which opens/closes my X11 in Mac

My X11 opens and closes repeatedly. I can see only the following at my Dock Application not responding How can you find logFiles which tell me the application that opens/closes X11 continuously? ...

Is there an equivalent to XKB geometry on Windows and OS X?

I am displaying an on-screen keyboard overlay, and ideally I would like to display something resembling the user's actual keyboard, which I do under X with XkbGetGeometry, much like xkbprint. I was wondering if there was something comparable on OS X and Windows. ...

How to get Xorg to work well with Intel Q35 on OpenSolaris?

OpenSolaris doesn't seem to support the Intel 82Q35 chipset. This is translated into slow Xorg whose performance degrades with time and is not usable at all even doing a ls on a fullscreen gnome console terminal. I notice that a huge amount of memory (>400Mb) is used by Xorg process and gnome (>100Mb per gnome app). Once I switched to v...

how do i open a windows in a different X11 session?

linux only: i want to open two windows for my application, one on the main screen of the computer, and one on a virtual X11 sessions to be accessed by remote desktop only. Can some X11 expert tell me how this is done? ...

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

Images have a fubar color palette when generated under Xvfb instead of normal X.

When generating a png image file in Mathematica on a linux box running X, there's no problem. Doing the same on a linux machine without X but instead Xvfb the png generates fine but the colors are all screwed up. We tried changing the pixel depth from the default of 8, to no avail. Any other tweaks that might make Xvfb mimic normal X ...

Best setup for Linux development from Windows?

What's the best setup for developing Linux apps from a Windows workstation? Right now I'm connected via SSH to our Linux development server and am using Eclipse, forwarded over SSH via PuTTY, to the public domain version of Xming running on my Windows workstation. It works, but it's not great; Eclipse's response times are far from snap...

How come XDrawString doesn't take "const char *"?

Hi, looking at the declaration for XDrawString from X11, it is int XDrawString(Display *display, Drawable d, GC gc, int x, int y, char *string, int length); How come the 6th argument is type "char *" instead of "const char *"? Does drawing the string require modifying it? I've seen lots of examples where people pass in...

Is the Linux system clipboard represented in the file system somewhere as a device?

If not why not? It seems as though reading, writing, and appending to it would be far more flexible provided multi instance and multi-user issues are accounted for. ...

How to know which window has focus and how to change it?

I would like to know how can I ask X11 which windows has focus. And if for any reason my own application (that may be visible or not) got the focus I want be able to let the former windows to get focus again. For instance, my application is running with many others (e.g. firefox, gvim, nautilus,...) Suppose that at first firefox has fo...

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

why don't more programming languages have builtin interfaces to the window manager?

Programming is at the heart about automating tasks on a computer. Presumably those tasks would normally be done manually by a human. Humans use the computer through the keyboard, mouse, and interaction with the console or the window manager. But very few languages have built in functions that provide an interface to these basic computin...

X11: get list of all gnome-terminal windows on my display?

I have two xterms and several gnome-terminal windows active on my X display. However, xlsclients only shows one gnome-terminal client. $ xlsclients luban.local /usr/X11/bin/xterm ohm gnome-terminal luban.local xterm How can I get a list of the gnome-terminal sessions attached to my display? ...

gnome-terminal: how to eliminate the scrollbar programatically?

I'm spawning some processes running in their own gnome-terminal and don't want to show the scrollbar. Is there something like xterm +sb to turn the scrollbar off for that particular window? ...

X11: raise an existing window via command line?

Given an X client window ID, is there a way to raise that window from the command line? $ xlsclients -a Window 0x3000001: Machine: ohm Name: Terminal Icon Name: foo Command: foo Instance/Class: foo/bar $ xraise -id 0x3000001 <-- this is what I would like to do ...