x11: Use meta_window_begin_grab_op() to begin window grab

Move away from meta_display_begin_grab_op().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2683>
This commit is contained in:
Carlos Garnacho 2022-09-29 18:52:22 +02:00 committed by Marge Bot
parent 78a5921066
commit 8685a706cc

View File

@ -3354,15 +3354,10 @@ meta_window_x11_client_message (MetaWindow *window,
meta_topic (META_DEBUG_WINDOW_OPS,
"Beginning move/resize with button = %d", button);
meta_display_begin_grab_op (window->display,
window,
op,
FALSE,
frame_action,
button, 0,
timestamp,
x_root,
y_root);
meta_window_begin_grab_op (window,
op,
frame_action,
timestamp);
button_mask = query_pressed_buttons (window);