Closed Bug 1534089 Opened 6 years ago Closed 6 years ago

Wrong Popup Menu position under Wayland

Categories

(Core :: Widget: Gtk, defect)

65 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1543035

People

(Reporter: plumerlis, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Attached image 选区_728.png

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

Attached image 选区_729.png

Right clicked

Component: Untriaged → Widget: Gtk
Product: Firefox → Core

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.

Blocks: wayland

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.

Attached image Too small popup window

I added a screenshot with a too small popup window.

(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.

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.

Summary: Wong Popup Menu position under Wayland → Wrong Popup Menu position under Wayland

Let's track it at Bug 1543035

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: