From 65aaf3a9ab9ec2be2973084060c2df5321b5acaa Mon Sep 17 00:00:00 2001
From: Guldoman <[EMAIL REDACTED]>
Date: Fri, 15 Sep 2023 02:01:08 +0200
Subject: [PATCH] x11: Always update clipboard owner
This allows utilities like clipboard managers to keep track of the
changes.
---
src/video/x11/SDL_x11clipboard.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/video/x11/SDL_x11clipboard.c b/src/video/x11/SDL_x11clipboard.c
index 30b48e8ec5fd..3bec670980af 100644
--- a/src/video/x11/SDL_x11clipboard.c
+++ b/src/video/x11/SDL_x11clipboard.c
@@ -92,9 +92,7 @@ static int SetSelectionData(SDL_VideoDevice *_this, Atom selection, SDL_Clipboar
clipboard->mime_count = mime_count;
clipboard->sequence = sequence;
- if (!clipboard_owner) {
- X11_XSetSelectionOwner(display, selection, window, CurrentTime);
- }
+ X11_XSetSelectionOwner(display, selection, window, CurrentTime);
return 0;
}