Browse Source

x11: Always update clipboard owner

This allows utilities like clipboard managers to keep track of the 
changes.
Guldoman 1 year ago
parent
commit
65aaf3a9ab
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/video/x11/SDL_x11clipboard.c

+ 1 - 3
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;
 }