1
0
Fork 0

compositor: Avoid special grab begin/end handling in MetaWindowDrag

This is already performed through the ClutterStage::is-grabbed property
being tracked. There is no need to do this ad-hoc.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3511>
This commit is contained in:
Carlos Garnacho 2023-11-02 14:18:17 +01:00 committed by Marge Bot
parent bd387a6308
commit 17d1d3abd8

View file

@ -391,9 +391,6 @@ meta_window_drag_end (MetaWindowDrag *window_drag)
clear_move_resize_later (window_drag);
if (meta_is_wayland_compositor ())
meta_display_sync_wayland_input_focus (display);
g_signal_emit_by_name (display, "grab-op-end", grab_window, grab_op);
g_signal_emit (window_drag, signals[ENDED], 0);
@ -1882,12 +1879,6 @@ meta_window_drag_begin (MetaWindowDrag *window_drag,
window_drag->initial_window_pos.height,
0, 1);
if (meta_is_wayland_compositor ())
{
meta_display_sync_wayland_input_focus (display);
meta_display_cancel_touch (display);
}
g_signal_emit_by_name (display, "grab-op-begin", grab_window, grab_op);
meta_window_grab_op_began (grab_window, grab_op);