PDA

View Full Version : [ubuntu] Move program window to new monitor?


whein
April 23rd, 2008, 12:23 PM
I have two monitors set up for display, but I am not using Xinerama or TwinView, just the binary nVidia driver and some good old hacking in the xorg.conf file. All works well, I can move the mouse cursor between the two and launch a program on either by calling
DISPLAY=:0.0 foo.sh
or
DISPLAY=:0.1 foo.sh
as appropriate. However, I don't know how to move a program window between the monitors once it is already visible! I know for a single monitor with multiple desktops you can right click the window title (in Gnome and KDE) and it gives you the option to send the window to another desktop. Is there a similar functionality that would send it to another display/monitor? Seems like there really should be, but beats me how to do it! Any takers?

As an add on, is there a system call or something (preferably callable from Java without too much headache, I'm newish to Linux and know almost nothing about JNI...) that could be used to move windows to new displays? Something in the X11 system I'm thinking?
-Will