GNOME Bugzilla – Bug 337755
Clicking "Unmaximize window" should not resize a window to an essentially maximized size
Last modified: 2006-04-09 02:07:39 UTC
I've seen this problem on multiple operating systems over the years.... It's really frustrating and it'd be nice if metacity would be a leader in addressing it. If I have a window that is maximized, and I click the unmaximize, I expect it to shrink that window by a non-trivial amount. Sometimes I'll end up with a window exactly the same size or just a few pixels smaller. This is happening with Evolution right now. If I click unmaximize, the window contents become slightly smaller, but the outside dimensions are the same. The only change has been that the window gets the bordering. Other information:
Unmaximize merely means to return the window to the size it was before it was maximized; not doing that would be a bug. The only case where we might be able to do something is if the window started out maximized and thus had no "previous size" to return it to. Is that the case you are observing?
Yes, that seems to be the scenario which causes this problem.
place_window_if_needed() in constrants.c handles the starts-out-maximized problem by making the saved window size be 75% of the available screen size in each direction. Thus, when you unmaximize, you get a window that is 75% of the screen width and screen height. Is 25% insufficient? Or are we possibly looking at the case of an app that does set some weird large size and then almost immediately maximizes itself?
Well, Evolution is the only example of this I have on hand at the moment. 75% sounds like a good amount in general.
That's an Evolution bug. ;-) *** This bug has been marked as a duplicate of 243962 ***