x11: Pass NET_WM_MOVERESIZE coordinates as window drag hint

This will make windows stick to the pointer from the right point
where dragging started.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3546>
This commit is contained in:
Carlos Garnacho 2024-01-25 16:42:43 +01:00
parent 4b1e24fcc4
commit 1b3759d51c

View File

@ -3443,7 +3443,7 @@ meta_window_x11_client_message (MetaWindow *window,
device, device,
sequence, sequence,
timestamp, timestamp,
NULL); &GRAPHENE_POINT_INIT (x_root, y_root));
window_drag = window_drag =
meta_compositor_get_current_window_drag (window->display->compositor); meta_compositor_get_current_window_drag (window->display->compositor);