After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 104298 - glade is not fully session aware.
glade is not fully session aware.
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: METACITY2.8.x
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks: 107063
 
 
Reported: 2003-01-24 10:39 UTC by Satyajit Kanungo
Modified: 2005-01-26 20:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Satyajit Kanungo 2003-01-24 10:39:27 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.
Comment 1 Satyajit Kanungo 2003-01-25 09:50:45 UTC
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);
 }

Comment 2 Damon Chaplin 2003-04-02 17:14:05 UTC
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.
Comment 3 Rob Adams 2003-09-20 05:01:29 UTC
does this still happen to people?  I personally never use the session
management so for all I know its horribly horribly broken.
Comment 4 Havoc Pennington 2003-09-25 02:31:16 UTC
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.
Comment 5 Elijah Newren 2005-01-26 20:38:06 UTC
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).