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 739573 - gnome-shell does not process aspect ratio hints correctly as of 3.14.0
gnome-shell does not process aspect ratio hints correctly as of 3.14.0
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-11-03 16:09 UTC by Matthew Gabeler-Lee
Modified: 2015-06-22 15:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthew Gabeler-Lee 2014-11-03 16:09:50 UTC
As of 3.14.0 (and 3.14.1), gnome-shell does not process aspect ratio hints for applications properly.

It appears that it is including the window decorations when computing sizes / aspect ratios for these hints, instead of managing the aspect ratio for the client area.

This was working properly (for me) in 3.13.x, but broke as of 3.14.0.

The most obvious failure mode is for media players setting an aspect ratio for video playback to avoid distortion and black bars.  The key example that I see is https://github.com/mpv-player/mpv/issues/1191.
Comment 1 Matthew Gabeler-Lee 2014-11-03 16:27:15 UTC
A quick grep through the source suggests that mutter is the one that does this aspect ratio enforcement and not gnome-shell, updating component accordingly.
Comment 2 Jasper St. Pierre (not reading bugmail) 2014-11-03 17:49:53 UTC
Is there a simple testcase I can use to test what's going wrong here?
Comment 3 Jonathan Evans 2014-11-03 20:35:05 UTC
I'm not sure if this will help, but here is a picture I took of the issue if you wish to see it. https://i.imgur.com/FhHXDKv.jpg
Comment 4 Ruei-Yuan Lu 2014-11-07 17:11:51 UTC
Some testcases:

Open gnome-terminal and press F11(enter fullscreen mode) repeatedly. The window will become smaller and smaller.

Not only mpv but also mplayer/mplayer2 with most video out module has the same problem.
Comment 5 Jasper St. Pierre (not reading bugmail) 2014-11-10 23:53:31 UTC
Fixed by

https://git.gnome.org/browse/mutter/commit/?id=cb66ab5a87251b21c3f807474022a0b74dba8808
Comment 6 Ruei-Yuan Lu 2014-11-11 02:10:37 UTC
Thanks a lot.

Seems like gnome-terminal's problem is caused by other reasons.
Comment 7 Jorge Israel Peña 2014-11-17 01:39:23 UTC
I'm still experiencing the problems described by Matthew with this patch (black bars in windowed mpv).
Comment 8 Matthew Gabeler-Lee 2014-11-18 00:57:19 UTC
(In reply to comment #7)
> I'm still experiencing the problems described by Matthew with this patch (black
> bars in windowed mpv).

From github (https://github.com/mpv-player/mpv/issues/1191#issuecomment-63251429):
> My mistake! It seems that the patch isn't available in 3.14.2, which is the latest package version available in arch.

I applied this patch atop Debian's 3.14.1-2 package, and the problem with mpv is mostly fixed, but the problem with gnome-terminal is not, as Ruei-Yual Lu noted.

There is a remaining problem with mpv when starting fullscreen, but I'm not sure that's gnome/mutter's fault.
Comment 9 Ruei-Yuan Lu 2014-11-18 01:02:52 UTC
For gnome-terminal, see https://bugzilla.gnome.org/show_bug.cgi?id=740027

Try commit 286a6ad and the patch I attached.
Comment 10 Ilja Sekler 2014-12-05 15:55:37 UTC
The fix has landed on master, but not on the gnome-3-14 branch. For the sake of Fedora 21 users, please land it on the gnome-3-14 branch as well (currently I use a privately rebuilt mutter-3.14.2-1.fc21.x86_64 rpm package with this patch and the both patches from <https://bugzilla.gnome.org/show_bug.cgi?id=740027> which apply cleanly and solve the issues as advertised). Thanks!
Comment 11 Matthew Gabeler-Lee 2015-06-22 15:20:04 UTC
(In reply to Ruei-Yuan Lu from comment #4)
> Some testcases:
> 
> Open gnome-terminal and press F11(enter fullscreen mode) repeatedly. The
> window will become smaller and smaller.

This appears to have regressed again in 3.16.  Also the initial size of gnome-terminal is now always wrong for me at startup -- one character narrower and shorter than it is supposed to be.

Created #751330