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 164677 - Windows left minimised in saved session are drawn restored in workspace switched on login
Windows left minimised in saved session are drawn restored in workspace switc...
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.8.x
Other All
: Normal minor
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
Depends on:
Blocks: 107063
 
 
Reported: 2005-01-20 09:50 UTC by Ben Roe
Modified: 2005-01-26 02:48 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8


Attachments
Screenshot showing incorrect minimised window thumbnailing (71.03 KB, image/jpeg)
2005-01-20 09:55 UTC, Ben Roe
  Details
Set the window state hints _after_ applying session information (1.07 KB, patch)
2005-01-26 00:01 UTC, Elijah Newren
accepted-commit_now Details | Review

Description Ben Roe 2005-01-20 09:50:05 UTC
Please describe the problem:
If a window is left minimised in a saved gnome session, when the user logs in
again the window thumbnail is drawn in the workspace switcher as if it had been
restored. I've attached a screenshot showing this.

Steps to reproduce:
1. Minimise a window
2. Logout, saving session
3. Log in
4. Look at workspace switcher


Actual results:
Window thumbnail is drawn

Expected results:
No thumbnail shown

Does this happen every time?
Yes

Other information:
Comment 1 Ben Roe 2005-01-20 09:55:02 UTC
Created attachment 36283 [details]
Screenshot showing incorrect minimised window thumbnailing
Comment 2 Elijah Newren 2005-01-20 14:14:02 UTC
Most likely a metacity problem (metacity has to notify libwnck about the status
of all windows).  Does this still occur with a version of Metacity where the
patch in bug 105665 has been applied?
Comment 3 Elijah Newren 2005-01-25 16:56:24 UTC
To answer my own question: Yes, it does still happen, I can duplicate with CVS
HEAD...
Comment 4 Elijah Newren 2005-01-26 00:01:26 UTC
Created attachment 36529 [details] [review]
Set the window state hints _after_ applying session information

So the problem was just that we set the wm_state and net_wm_state hints too
soon in meta_window_new_with_attrs.  If we set the state after applying saved
session info, then this problem disappears.
Comment 5 Elijah Newren 2005-01-26 02:48:16 UTC
committed.