Closed Bug 1856945 Opened 1 year ago Closed 1 year ago

Hints and context menu not displayed correctly when enabling widget.wayland.fractional-scale on Wayland

Categories

(Core :: Widget: Gtk, defect)

Firefox 118
defect

Tracking

()

RESOLVED DUPLICATE of bug 1849109

People

(Reporter: postix, Unassigned)

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0

Steps to reproduce:

  1. Firefox 118 and KDE Plasma 5.27.8 Wayland
  2. about:config: set widget.wayland.fractional-scale.enabled to true and restart the FF
  3. Go to [1] and hover the mouse over the reactions
  4. Right click somewhere in Firefox to open the context menu: Often it looks right, but in some cases the issue appears, so try it several times

Please also see the attached screen recording in the downstream bug report. [2]

[1] https://invent.kde.org/plasma/systemsettings/-/issues/15#note_775149
[2] https://bugs.kde.org/show_bug.cgi?id=475165

Actual results:

Context menus and hints are sometimes opened at a different location than the cursor position and are too small when using a non-integer scaling factor (of 1.25).

I have noticed that the context menu issues also appear with an integer scaling factor of 2.0 on Plasma's side, when enabling fractional scaling in FF.

According to David Edmundson, "the xdg_positioner.set_anchor_rect changes between these broken and correct cases even when clicking on the same place."

Expected results:

Context menus and hints also open at the cursor position and have a reasonable size, just as when having fractional scaling disabled in Firefox's advanced config.

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.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1849109
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.