From a6bda759f97bc64b81b804da9d025ad02bf5a8c9 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 5 Sep 2023 16:34:15 +0200 Subject: [PATCH] wayland: Do not trigger focus sync when destroying data offers These objects are tied to the keyboard focus lifetime, but do not drive it in any way. There is likewise no need to synchronize Wayland focus when those are destroyed, that will be triggered through crossing events, surface destroy notifications, etc... Related: https://gitlab.gnome.org/GNOME/mutter/-/issues/2993 Part-of: --- src/wayland/meta-wayland-data-offer-primary.c | 1 - src/wayland/meta-wayland-data-offer.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/wayland/meta-wayland-data-offer-primary.c b/src/wayland/meta-wayland-data-offer-primary.c index 89a5a3c13..4f1afed87 100644 --- a/src/wayland/meta-wayland-data-offer-primary.c +++ b/src/wayland/meta-wayland-data-offer-primary.c @@ -127,7 +127,6 @@ destroy_primary_offer (struct wl_resource *resource) offer->source = NULL; } - meta_display_sync_wayland_input_focus (display_from_offer (offer)); g_free (offer); } diff --git a/src/wayland/meta-wayland-data-offer.c b/src/wayland/meta-wayland-data-offer.c index a689da828..7237ad95d 100644 --- a/src/wayland/meta-wayland-data-offer.c +++ b/src/wayland/meta-wayland-data-offer.c @@ -236,7 +236,6 @@ destroy_data_offer (struct wl_resource *resource) offer->source = NULL; } - meta_display_sync_wayland_input_focus (display_from_offer (offer)); g_free (offer); }