GNOME Bugzilla – Bug 104298
glade is not fully session aware.
Last modified: 2005-01-26 20:38:06 UTC
Steps reproduce: 1) Open glade from workspace-2 by running glade-2 from a command prompt. 2) Glade main window, Properties and Palette windows comesup in workspace-2. 3) Logged out and login back by saving the session. 4) Only glade's main window comes up in workspace-2. The Palette and properties windows Comes up in workspace-1. Expected Behaviour - All the windows of glade should have appeared in workspace 2.
The problem could be glade is doing a gdk_window_show() and gdk_window_raise after a gtk_widget_show(). If I remove the the gdk_window_show() part from palette.c and properties.c , it works fine and all the windows come in the correct workspace (where glade was opened) . Index: glade//glade/palette.c =================================================================== @@ -89,11 +89,10 @@ palette_show (GtkWidget * widget, { if (!glade_palette) palette_create (); gtk_widget_show (glade_palette); /* This maps the window, which also de-iconifies it according to ICCCM. */ - gdk_window_show (GTK_WIDGET (glade_palette)->window); gdk_window_raise (GTK_WIDGET (glade_palette)->window); } Index: glade//glade/property.c =================================================================== @@ -571,11 +571,10 @@ property_show (GtkWidget * widget, { if (!win_property) property_create (); gtk_widget_show (win_property); /* This maps the window, which also de-iconifies it according to ICCCM. */ - gdk_window_show (GTK_WIDGET (win_property)->window); gdk_window_raise (GTK_WIDGET (win_property)->window); }
This works OK for me. When Glade is restarted all the windows appear on the 2nd workspace. I think it is a metacity issue anyway, since that should determine which workspace the windows appear on.
does this still happen to people? I personally never use the session management so for all I know its horribly horribly broken.
If removing the show() fixes it it must be some sort of race condition or something, that can't be the root cause. Possibly a dup of some of the other SM bugs.
I can't dupe with CVS HEAD--I believe this has been fixed. (See also bug 103326, which I can't dupe and which Malcolm suggests was fixed around Gnome 2.4 or so) Feel free to reopen if you still run into any problems. (But if you do, please provide the _exact_ list of all windows you had open and their states so that I can attempt to duplicate).