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 485472 - Weird behavior on unfullscreen with scrollbars
Weird behavior on unfullscreen with scrollbars
Status: RESOLVED DUPLICATE of bug 461927
Product: metacity
Classification: Other
Component: general
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
: 489678 (view as bug list)
Depends on:
Blocks: 484682
 
 
Reported: 2007-10-10 18:18 UTC by Jonh Wendell
Modified: 2007-11-24 15:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20


Attachments
Test case (2.33 KB, text/plain)
2007-10-10 18:23 UTC, Jonh Wendell
Details

Description Jonh Wendell 2007-10-10 18:18:12 UTC
I'm experiencing a weird behavior when trying to restore a window from the fullscreen state, and that window has a scrollbar.

I'd fill this bug against gtk, but when i use compiz, everything work as expected.
Comment 1 Jonh Wendell 2007-10-10 18:23:22 UTC
Created attachment 97016 [details]
Test case

before hit F11, type something in the text area, so that the scrollbar appears
then, hit F11 to fullscreen and F11 again to go back
Comment 2 Jonh Wendell 2007-10-24 08:30:42 UTC
*** Bug 489678 has been marked as a duplicate of this bug. ***
Comment 3 Thomas Thurman 2007-10-30 21:55:42 UTC
Metacity has a check in it (around constraints.c:415) for pre-EWMH clients
which attempt to sham-fullscreen themselves by making their window as big as
the screen. It intercepts this and fullscreens the window instead. This code is
being triggered. The window is not fullscreened at that point where it is
triggered after unfullscreening, and it is exactly as big as the screen.

I need to investigate some more, and I'm not certain, but I think what's
happening here is:

* The GTK window in question does not have a particular size set;
* Hence, unfullscreening merely clears the fullscreen flag and the window stays
fullsize
* Hence, metacity thinks the window is trying to fullscreen itself and returns
it to fullscreen.

I don't know enough about GTK to know why windows without scrollbars should
return to their old size and windows with should not, but I will attempt to
find out (unless anyone here tells me first). What to do next depends on that,
and after that on what the EWMH says, and after that what other WMs do.
Comment 4 Elijah Newren 2007-11-14 02:30:33 UTC
Regression since 2.18.  Interesting...
Comment 5 Jonh Wendell 2007-11-24 15:31:23 UTC
Running the test case against trunk version as today, it works fine. Can somebody confirm this? Has somebody fixed that? Or was it fixed by itself? :)
Comment 6 Elijah Newren 2007-11-24 15:50:33 UTC
Indeed, it was fixed by Peter Bloomfield's additional patch from bug 461927.  Guess it pays to add a few extra checks.  :-)

*** This bug has been marked as a duplicate of 461927 ***