Gap Between Title Bar and Window using Wayland, 150% Fractional Scaling
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
People
(Reporter: lordmethenor, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0
Steps to reproduce:
- Set up wayland fractional scaling and set to 150% (I am using GNOME 45)
- Open Firefox
- Customize Toolbar
- Enable "Title Bar"
- Hit done
I am using a Framework Laptop 13 (12th Gen Intel) with a HIDPI panel.
My distro is Fedora 39 Workstation, and my DE is GNOME 45, which uses the Mutter compositor for wayland.
In order to ensure a clean config, I spun up a new VM with the same OS and DE and downloaded and ran the official tar.bz2, though I typically run the Fedora repo rpm and use a gtk3 theme.
While it isn't super visible, it is worse when I move the window, resize it, or open the overview.
I can sometimes see flickering around title bar in 125% fractional scaling, but the effect is much clearer (though still slight) at 150%.
Actual results:
There is a slight gap between the title bar and the rest of the window. In the gap, the wallpaper or a background window's color appears.
Expected results:
There should be no gap.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Comment 2•2 years ago
|
||
I'm suspicious that problems with subsurface positioning when Mutter is running in fractional scaling mode might be the cause of this problem.
It looks like what's happening is that the Firefox subsurface isn't always aligned exactly with the bottom of the titlebar rendered by Gtk, so sometimes a sliver of the window behind the subsurface is visible. My recollection is that the Gtk toplevels have a transparent background (in order to support rounded corners when Firefox is drawing the titlebar?), so this means you see through the window to whatever is behind it.
It might be possible to work around this issue by having the Gtk toplevel window draw an opaque background when the Gtk titlebar is enabled.
Comment 3•2 years ago
|
||
I have reproduced this issue, and confirm that setting widget.transparent-windows to false in in about:config prevents the wallpaper (or another window) from being visible through the gap between the titlebar and window content. There's still a little bit of flickering visible as the window is scaled in the GNOME overlay, likely caused by the subsurface occasionally covering up the dark border at the bottom of the titlebar slightly.
Comment 4•2 years ago
|
||
To clarify, this issue is independent of whether or not Firefox itself is using fractional scale rendering (i.e. it occurs with both widget.wayland.fractional-scale.enabled=true and =false.)
(In reply to Calvin Walton from comment #4)
To clarify, this issue is independent of whether or not Firefox itself is using fractional scale rendering (i.e. it occurs with both
widget.wayland.fractional-scale.enabled=trueand=false.)
Can confirm. Still occurs at 200%.
Comment 7•2 years ago
|
||
(In reply to lordmethenor@outlook.com from comment #6)
What do we need to provide to confirm this bug?
You don't need to provide anything, I believe you.
Updated•2 years ago
|
(In reply to Martin Stránský [:stransky] (ni? me) from comment #7)
(In reply to lordmethenor@outlook.com from comment #6)
What do we need to provide to confirm this bug?
You don't need to provide anything, I believe you.
I apologize if it sounded like I thought you didn't. I was asking what I could provide to be helpful, not exasperated. The transparency fix has resolved the worst of the issue for me personally. Thank you for marking.
Comment 9•1 year ago
|
||
(In reply to lordmethenor@outlook.com from comment #8)
(In reply to Martin Stránský [:stransky] (ni? me) from comment #7)
(In reply to lordmethenor@outlook.com from comment #6)
What do we need to provide to confirm this bug?
You don't need to provide anything, I believe you.
I apologize if it sounded like I thought you didn't. I was asking what I could provide to be helpful, not exasperated. The transparency fix has resolved the worst of the issue for me personally. Thank you for marking.
Sure, not a problem.
| Reporter | ||
Comment 10•6 months ago
|
||
This still occurs in Firefox 144 on Fedora 42 Workstation/GNOME 48 though only when maximized or split-screened. widget.transparent-windows=false causes other minor graphical issues, so a fix would be appreciated. Should this be brought to the attention of the mutter developers? Unfortunately, I cannot reliably test on another DE/Wayland compositor due to some issues regarding VM displays and storage on my system.
| Reporter | ||
Comment 11•6 months ago
|
||
| Reporter | ||
Comment 12•6 months ago
|
||
| Reporter | ||
Comment 13•6 months ago
|
||
Comment 14•6 months ago
|
||
This is an incarnation of Bug 1731895 / Bug 1992198.
Comment 15•6 months ago
|
||
Please test latest nightly on KDE:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
KDE already supports nice subsurface rounding.
Thanks.
| Reporter | ||
Comment 16•1 month ago
|
||
(In reply to Martin Stránský [:stransky] (ni? me) from comment #15)
Please test latest nightly on KDE:
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems#Testing_Mozilla_Nightly_binaries
KDE already supports nice subsurface rounding.
Thanks.
I don't have KDE installed. I could spin up a VM, but VMs don't properly detect and scale the resolution of my screen, so the result will not be appearent. I also think this may have been fixed, but I don't have time to test different scaling factors and find out at the moment.
Comment 17•1 month ago
|
||
Not a problem, it's known issue, should be solved by fractional-scale-v2 wayland protocol.
Description
•