From e5483a963e688532b05a3409e2f090cad70ecb0c Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 25 Jan 2024 16:43:48 +0100 Subject: [PATCH] wayland: Pass button/touch press begin coordinates as window drag hint This will make windows stick to the pointer from the right point where dragging started. Part-of: --- src/wayland/meta-wayland-surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 93966ed64..abac6ad3a 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -1616,7 +1616,7 @@ meta_wayland_surface_begin_grab_op (MetaWaylandSurface *surface, grab_op, device, sequence, meta_display_get_current_time_roundtrip (window->display), - NULL); + &GRAPHENE_POINT_INIT (x, y)); } /**