I've done the same thing for GTK/GDK. Used the basic 'Hello GTK' source from
http://library.gnome.org/devel/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD
and amended it to get the screen number:
gtk_init (&argc, &argv);
/* create a new window */ window = gtk_window_new (GTK_WINDOW_TOPLEVEL); screen = gtk_window_get_screen(GTK_WINDOW (window)); screen_num = gdk_screen_get_number(screen);
Again, this works correctly on both screens, reporting the correct screen number.
This is starting to narrow down the issue towards gnome-panel (I see launcher has a launcher_get_screen() function) or maybe gnome-session ?
I've done the same thing for GTK/GDK. Used the basic 'Hello GTK' source from
http:// library. gnome.org/ devel/gtk- tutorial/ stable/ c39.html# SEC-HELLOWORLD
and amended it to get the screen number:
gtk_init (&argc, &argv);
/* create a new window */ TOPLEVEL) ; get_screen( GTK_WINDOW (window)); get_number( screen) ;
window = gtk_window_new (GTK_WINDOW_
screen = gtk_window_
screen_num = gdk_screen_
Again, this works correctly on both screens, reporting the correct screen number.
This is starting to narrow down the issue towards gnome-panel (I see launcher has a launcher_ get_screen( ) function) or maybe gnome-session ?