dual screen setup

Leszek Koltunski leszek at koltunski.pl
Fri Oct 9 09:27:50 PDT 2009


This no longer has much to do with X, but just as a followup -

The Gnome people replied to my bug and - according to them - it turns
out that windows popping out in wrong X screen is an application
problem. 

In this case, the gnome-mixer (it supposedly was fixed back in May):

https://bugzilla.gnome.org/show_bug.cgi?id=556178

^^^ the above, and more precisely the patch fixing gnome-mixer:

diff --git a/mixer/dock.c b/mixer/dock.c
index 3acc407..abc3f34 100644
--- a/mixer/dock.c
+++ b/mixer/dock.c
@@ -159,6 +159,8 @@ gnome_volume_applet_dock_new (GtkOrientation orientation,
 
   dock = g_object_new (GNOME_VOLUME_APPLET_TYPE_DOCK,
 		       NULL);
+  gtk_window_set_screen (GKT_WINDOW (dock),
+                         gtk_widget_get_screen(GTK_WIDGET (parent)));
   dock->orientation = orientation;
   dock->model = parent;
   g_signal_connect (dock, "key_press_event", G_CALLBACK (cb_key_press),
-- 

strongly suggest that each GTK application has to explicitly call the
'gtk_window_set_screen()' to inherit the screen from its parent or else 
it will not me multihead aware. Kinda dumb if you ask me - after all, 
shouldn't that almost always be the desired behaviour and thus be done automatically?

I just thoroughly checked the whole Ubuntu 9.10 beta setup and it turns out the following
suffer from the same:

- tomboy
- mail notification
- indicator applet
- parts of gnome-panel
- policykit-gnome

Anyway, I guess I will go to the GTK+ mailing list and whine there...




More information about the xorg mailing list