GNOME Bugzilla – Bug 108706
clicking close button causes restacking
Last modified: 2005-10-11 21:22:30 UTC
When you click the "close" button on a window now, metacity restacks windows so that the next window up will be the next available window in the same application. (I find this behavior annoying, but that's a separate issue and I assume it was changed to be more like Mac/Win.) But the particular way that it does this is messy and confusing. Eg, if you click "close" on an evolution composer window, metacity restacks the main evo window to the top, and *then* pops up the "are you sure you want to close the composer" window above it. This causes a sort of light mental whiplash; the reappearance of the main window signals "you can stop thinking about the composer now", but then just as you're starting to plan your next stop, bam! there's the composer again. What should happen is, you click "close", the composer pops up its "save changes?" window, you click "no", the composer window goes away. and *then* metacity restacks the other window into place.
If I understand this correctly, the problem is just that when you click close then we immediately activate another window. But we should activate the other window when the window closes, not when you click close.
yes
This is kind of irritating and I don't really remember why we added the extra logic to work like this. Maybe cvs annotate could be used to locate the relevant ChangeLog. To fix you just remove the focus_mru_window from meta_window_delete, very straightforward. Let's just do that and see who complains.
I checked in this change, if it breaks please open a new bug about the specific breakage.
*** Bug 115846 has been marked as a duplicate of this bug. ***
*** Bug 268975 has been marked as a duplicate of this bug. ***