From d3b74daabd8fa8f6410eabc4643895da11600409 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Thu, 10 Nov 2022 08:58:21 -0600 Subject: [PATCH] data-device: Fix coordinate conversion I inverted the direction of this transform when I stopped doing it from weston_compositor_pick_view() Fixes 4d141a788 Signed-off-by: Derek Foreman --- libweston/data-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libweston/data-device.c b/libweston/data-device.c index 1dcce2ea3..c533b88b3 100644 --- a/libweston/data-device.c +++ b/libweston/data-device.c @@ -587,7 +587,7 @@ drag_grab_focus_internal(struct weston_drag *drag, struct weston_seat *seat, return; if (view) { - weston_view_to_global_fixed(view, x, y, &sx, &sy); + weston_view_from_global_fixed(view, x, y, &sx, &sy); weston_drag_set_focus(drag, seat, view, sx, sy); } else weston_drag_clear_focus(drag);