From 17d1d3abd848561474544e89d60f9e17c7374e31 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Thu, 2 Nov 2023 14:18:17 +0100 Subject: [PATCH] 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: --- src/compositor/meta-window-drag.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/compositor/meta-window-drag.c b/src/compositor/meta-window-drag.c index 2685cf5d3..eac1442eb 100644 --- a/src/compositor/meta-window-drag.c +++ b/src/compositor/meta-window-drag.c @@ -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);