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 <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2022-11-10 08:58:21 -06:00
parent bbd707d9bc
commit d3b74daabd
1 changed files with 1 additions and 1 deletions

View File

@ -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);