[java-gnome-hackers] GTK, DisplayManager and multihead X
Brought to you by:
afcowie
From: Stefan P. <st...@pr...> - 2008-05-18 12:25:35
|
Hi all, I was experimenting with multiheaded display support for java-gnome. For this purpose I wrote coverage for org.gnome.gdk.DisplayManager and org.gnome.gdk.Display. I ran into two problems. One may be missing understanding on the java-gnome internals, the other may be X/GTK related. 1. When requesting a list of displays from the DisplayManager I got the message that there is no mapping for 'GdkDisplayX11' in the typeMapping.properties. So just for testing I changed GdkDisplay=org.gnome.gdk.Display to GdkDisplayX11=org.gnome.gdk.Display which seemed to work. What would be the correct way to add this mapping? 2. I have a dual headed workstation with Xinerama. GTK identifies this as 1 display with 1 screen ":0.1" (2560x1024). When I use the Java Swings GraphicsEnvironment/GraphicsConfiguration this is identified as 2 screens ":0.0" and ":0.1" (1280x1024). When testing to open applications on a specific screen, it looks like I really do have one screen when it comes to X. "xterm -display :0.0" works, "xterm -display :0.1" doesn't. I hoped I would get java-gnome to behave like Swing, which allows me (in my setup) to decide on which monitor a window shows up. Any idea what I can do? How can I tell X/GTK that I do have multiple screens on my display? If you want to try it out, I attached a patch against the mainline and an additional test program. Regards, Stefan |