GNOME Bugzilla – Bug 329152
Wrong placement when maximized/restored
Last modified: 2007-04-04 22:03:17 UTC
How to reproduce the bug. 1.Open gnome-terminal without any tabs 2.maximize it 3.add a new tab 4.restore Result: The gnome-terminal is placed in the upper left with its titlebar and left edge outside of the desktop and under the panel (if you have one on the top :) )
I can reproduce this using HEAD. My guess is: when the second tab is created, the window size is changed, and someone (metacity?) gets confused. We'll see...
Created attachment 71873 [details] Python example showing this This tiny ython example shows that this has nothing to do with gnome-terminal. Cc'ing Elijah, who may know if this is metacity...
I can't replicate the window being under the panel at all, though that does sound like a bug that did affect early 2.13.x. However, that's the lesser part of this bug. I can duplicate the other half -- current metacity will exhibit suboptimal placement[1] of a window being unmaximized when that window has modified its minimum size hint to be larger than the saved window position. When metacity tries to restore the window to its original position & size, it finds that it *can't* do so because that violates the newly-changed minimum size constraint. It is forced to adjust the placement, but the current adjustment is, well, buggy. :) [1] Placed in the upper left of the workarea.
I can reproduce the placement issue. Furthermore, if the terminal is put in full screen mode (F11) instead of maximising it, then the title bar is hidden beneath the panel (or off the top of the screen if there is no top panel) when the window is restored. (I reported this earlier in bug #353699, before I was aware of this bug).
As further noted in bug 353699, once the separate titlebar-offscreen issue is fixed by the patch there, it exhibits a similar but different bug. Rather than the minimum size hints being violated by the saved window position, the size-increments/base-size hints are. So, we have the same suboptimal workaround for either kind of size hints being violated.
Fixed in trunk.