Closed Bug 1758425 Opened 2 years ago Closed 2 years ago

GTK Native Context Menus Displaced From Right Click Location

Categories

(Core :: Widget: Gtk, defect)

Firefox 99
defect

Tracking

()

RESOLVED FIXED
100 Branch
Tracking Status
firefox100 --- fixed

People

(Reporter: lolrepeatlol, Assigned: emilio)

References

Details

Attachments

(2 files)

Attached video video.mp4

When widget.gtk.native-context-menus is set to true, and the context menu is invoked, the context menu tends to appear at a spot that doesn't correspond to where the right mouse button was clicked.

The amount of offsetting seems to depend on the size of the window.

(This is on X11, not tested with Wayland)

That smells like a hidpi issue, but it works for me with Wayland fwiw

Blocks: 1757402

Position needs to be relative to the GdkWindow.

On Wayland, where there are no global screen coordinates that already
worked, but on X11 it didn't.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/47304f2fec7a
Fix native menu position on X11. r=stransky
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 100 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: