GNOME Bugzilla – Bug 311400
Endless flicker with full screen maximization.
Last modified: 2005-08-06 03:41:20 UTC
Please describe the problem: When using sloppy focus a full screen maximized window may cause endless flicker or enable window lowering of unfocused windows. Steps to reproduce: 1. Enable sloppy focus 2. Start The Gimp (though applies to all applications) and open an image. 3. Full screen maximize the image window. 4a. Alt+tab and focus the dialog windows. 4b. Alt+tab and open another application in the panel. Actual results: In case 4a: the full screen maximized window raises as soon as focus leaves the dialog windows. In case 4b: the screen flickers when the newly window tries to come on top of the window stack, while the full scren maximized window tries to come on top in an endless loop. Expected results: The full screen maximized window would not try to raise to the top of the window stack as soon as it is focused. Does this happen every time? Yes. Other information: This has been seen on FC4 and Ubuntu Hoary, Breezy, Debian etc. Does not occur in "Click to focus"-mode.
WEEEEEEE! That's fun! Not very conducive to getting work done, though. Okay, so a step was missed in your explanation that is crucial to triggering the bug (took me a little while to reproduce). Make sure that the mouse pointer will be over one of the windows that you alt-tab to. So, that answers my question from bug 156511 comment 8--it is important to distinguish between the focus window and the expected focus window. Using just the expected focus window removes this endless flickering (and, in fact, it does more; even in click-to-focus there was a flicker but it only happens one time; removing the use of the focus window removes that single flicker in click-to-focus as well).
Created attachment 50003 [details] [review] Remove usage of focus_window and just use expected_focus_window; appears to fix the bug I have to admit on this patch--I didn't look real closely at what exact part needed to have just the expected_focus_window part; I just suspected that this chunk of code was the problem and if I was going to change part of it then I might as well make it all consistent. And it appears to work. :-)
Comment on attachment 50003 [details] [review] Remove usage of focus_window and just use expected_focus_window; appears to fix the bug Seems reasonable, thanks
Committed to head.
*** Bug 312729 has been marked as a duplicate of this bug. ***