Wrong Popup Menu position under Wayland
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
People
(Reporter: plumerlis, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:65.0) Gecko/20100101 Firefox/65.0
Steps to reproduce:
1 Enable Gnome Shell fractional scaling and set it to 150%(or 125%), and maybe also need a large display.
2 Launch Firefox with Wayland backend
3 Maximum Firefox's window
4 Try to click Firefox Menu and see the position where menu pop up
5 Try to right click at the right side of the page and see the position where menu pop up
Actual results:
The pop up menu seems limited in a left side area and will never appear to the right side
Expected results:
Pop up menu(Right click menu) should be following the mouse pointer
Updated•6 years ago
|
Comment 2•6 years ago
|
||
I can confirm this.
Nightly on Wayland, GNOME 3.32, two 3840x2160 screens at 150% scale (so the client scale is 2x).
Popups from right-clicks or toolbar buttons behave poorly:
-
Popups are limited to an area of a quarter of a screen, attached to the top left corner of the window; they behave as if this is the screen bound.
-
Popups ignore the actual screen bounds; they can place themselves partially outside the desktop or be split by the edge between two screens.
I confirm this behaviour. What I also observe is that the popup window becomes sometimes smaller and smaller if I right click several times at different places in the same page. Usually I have to right click about ten times. I also right click to make the popup disappear. Sometimes the popup window is barely more that the scroll up and scroll down arrows.
Comment 5•6 years ago
|
||
(In reply to Jan Alexander Steffens [:heftig] from comment #2)
- Popups are limited to an area of a quarter of a screen
To trigger this, GNOME Shell must have the "scale-monitor-framebuffer"
feature enabled and the scale must be greater than 1.
Comment 6•6 years ago
|
||
It appears this is caused by Mutter/GDK reporting bogus values for the monitor sizes. The GdkMonitor for 3840x2160@2 has a size of just 960x540.
Hacking mutter to report the unscaled size independent of the layout mode seems to fix popups being limited to a quarter of the screen, but not the other issues.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Let's track it at Bug 1543035
Description
•