After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 311400 - Endless flicker with full screen maximization.
Endless flicker with full screen maximization.
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
trunk
Other All
: High major
: 2.12.x
Assigned To: Metacity maintainers list
Metacity maintainers list
: 312729 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-07-24 12:32 UTC by Thomas Eriksson
Modified: 2005-08-06 03:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
Remove usage of focus_window and just use expected_focus_window; appears to fix the bug (1.54 KB, patch)
2005-07-31 05:55 UTC, Elijah Newren
committed Details | Review

Description Thomas Eriksson 2005-07-24 12:32:36 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.
Comment 1 Elijah Newren 2005-07-31 05:51:49 UTC
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).
Comment 2 Elijah Newren 2005-07-31 05:55:51 UTC
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 3 Havoc Pennington 2005-08-01 03:31:06 UTC
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
Comment 4 Elijah Newren 2005-08-01 04:59:51 UTC
Committed to head.
Comment 5 Elijah Newren 2005-08-06 03:41:20 UTC
*** Bug 312729 has been marked as a duplicate of this bug. ***