GNOME Bugzilla – Bug 165917
Don't save window size on exit if maximized
Last modified: 2005-02-04 22:55:25 UTC
Using metacity as the window manager - Open blam - maximize its window - close it - re-open blam - it takes all the screen, and it's impossible to un-maximize it by clicking on the "square" next to the close icon in metacity's title bar. This is because you shouldn't save the window's size if the window is maximized when you quit blam. Just keep the last un-maximied size as the default window size.
I was sure that this was already handled this way but apparently not. Should however save that it's maximized state and re-maximize it when restarted but then let you click the unmaximize to get back to the default size.
Created attachment 36906 [details] [review] Proposed Patch Hi, here's a patch I whipped up real quick ... should solve the problem. There are various other states that can be used in this situation such as "Sticky" or "Withdrawn" (look at doc for Gdk.WindowState enum) but I'll leave those up to someone else.
Created attachment 37009 [details] [review] Fixed version of the patch Commited this fixed version of the patch. Changes: * Missed main_window_state in schema file * Should restore window size and position even if it's maximized. (since unmaximizing will go back to these values).
Thanks a lot for the patch, if you are interested you can see what changes I made to it before commited in the patch above.