Closed Bug 1567463 Opened 6 years ago Closed 6 years ago

[Wayland][HDPI] Wrong drag-and-drop surface offset

Categories

(Core :: Widget: Gtk, defect, P3)

68 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED INVALID
Tracking Status
firefox68 --- affected
firefox69 --- affected
firefox70 --- affected

People

(Reporter: rmader, Unassigned)

References

(Blocks 1 open bug, )

Details

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

Steps to reproduce:

I'm currently working on a branch implementing proper DnD-surface offset in Mutter/GS (https://gitlab.gnome.org/GNOME/mutter/merge_requests/684). This comes down supporting the last two arguments in

wl_surface_attach(dnd_drag->drag_surface, buffer,
                  -dnd_drag->hotspot_x, -dnd_drag->hotspot_y);

This all works very well on scale=1, but in HIDPI scenarios FF (Wayland backend), in contrast to other GTK+ apps like nautilus, does not seem to take the scale into account and the DnD surface moves to far to the top left instead of matching the position where the mouse grab started.

Tested on FF 68 aswell as latest nightly.

I tried to make a screencast, but unfortunately the mouse positioning is currently broken in that scenario (mutter git master). Will post one as soon as that got fixed.

Thanks, we'll look at it when the change hits Fedora/mutter package.

Priority: -- → P3

The mutter MR just landed and will be shipped in Fedora from 3.33.92 on.

From a discussion we had today[1] it now looks like the GTK implementation is the one to be wrong and Firefox on Wayland does things right. Keeping this one open until we're sure (and Mutter behaves accordingly).

1: https://gitlab.gnome.org/GNOME/mutter/merge_requests/780#note_607671

Ok, this I'm now sure that this is a Mutter bug, as I relied on GTK behaviour instead of actually checking the values. Should be fixed by Mutter 3.34.1.

Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → INVALID

The MR above just landed, so confirmed to be fixed in Mutter 3.34.1

You need to log in before you can comment on or make changes to this bug.