From 78a5921066397b043388f714618566d54d2e7d74 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 29 Sep 2022 18:51:39 +0200 Subject: [PATCH] wayland: Port to meta_window_begin_grab_op() Move away from meta_display_begin_grab_op(), and start window grab operations through the MetaWindow API. Part-of: --- src/wayland/meta-wayland-surface.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 331fc1b72..9500ad73b 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -1557,15 +1557,10 @@ meta_wayland_surface_begin_grab_op (MetaWaylandSurface *surface, /* This is an input driven operation so we set frame_action to constrain it in the same way as it would be if the window was being moved/resized via a SSD event. */ - return meta_display_begin_grab_op (window->display, - window, - grab_op, - TRUE, /* pointer_already_grabbed */ - TRUE, /* frame_action */ - 1, /* button. XXX? */ - 0, /* modmask */ - meta_display_get_current_time_roundtrip (window->display), - x, y); + return meta_window_begin_grab_op (window, + grab_op, + TRUE, /* frame_action */ + meta_display_get_current_time_roundtrip (window->display)); } /**