[Wayland][HDPI] Wrong drag-and-drop surface offset
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
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.
Reporter | ||
Updated•6 years ago
|
Comment 1•6 years ago
|
||
Thanks, we'll look at it when the change hits Fedora/mutter package.
Updated•6 years ago
|
Reporter | ||
Comment 2•6 years ago
|
||
The mutter MR just landed and will be shipped in Fedora from 3.33.92 on.
Reporter | ||
Comment 3•6 years ago
|
||
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
Reporter | ||
Comment 4•6 years ago
|
||
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.
Reporter | ||
Comment 5•6 years ago
|
||
The MR above just landed, so confirmed to be fixed in Mutter 3.34.1
Description
•