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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
Carlos Garnacho 2022-09-29 18:51:39 +02:00 committed by Marge Bot
parent 84ed992a18
commit 78a5921066

View File

@ -1557,15 +1557,10 @@ meta_wayland_surface_begin_grab_op (MetaWaylandSurface *surface,
/* This is an input driven operation so we set frame_action to /* 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 constrain it in the same way as it would be if the window was
being moved/resized via a SSD event. */ being moved/resized via a SSD event. */
return meta_display_begin_grab_op (window->display, return meta_window_begin_grab_op (window,
window,
grab_op, grab_op,
TRUE, /* pointer_already_grabbed */
TRUE, /* frame_action */ TRUE, /* frame_action */
1, /* button. XXX? */ meta_display_get_current_time_roundtrip (window->display));
0, /* modmask */
meta_display_get_current_time_roundtrip (window->display),
x, y);
} }
/** /**