From 7b9036bea636e87d5f0d0a81acab58e5bdd94d91 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Thu, 27 Feb 2025 11:07:27 -0500 Subject: [PATCH] wayland: Don't overwrite clipboard data with the primary selection text Primary selection text is handled separately, and shouldn't clobber the clipboard data. --- src/video/wayland/SDL_waylandevents.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/video/wayland/SDL_waylandevents.c b/src/video/wayland/SDL_waylandevents.c index c5aaf4be2e..83c414fb3a 100644 --- a/src/video/wayland/SDL_waylandevents.c +++ b/src/video/wayland/SDL_waylandevents.c @@ -2563,8 +2563,6 @@ static void primary_selection_device_handle_selection(void *data, struct zwp_pri SDL_LogTrace(SDL_LOG_CATEGORY_INPUT, ". In zwp_primary_selection_device_v1_listener . primary_selection_device_handle_selection on primary_selection_offer 0x%08x", (id ? WAYLAND_wl_proxy_get_id((struct wl_proxy *)id) : -1)); - - notifyFromMimes(offer ? &offer->mimes : NULL); } static const struct zwp_primary_selection_device_v1_listener primary_selection_device_listener = {