X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).
authorRyan C. Gordon <icculus@icculus.org>
Tue, 26 May 2015 21:26:27 -0400
changeset 9650 12d477422f47
parent 9649 d7762e30ba24
child 9651 565009735397
X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!). Partially fixes Bugzilla #2266.
src/video/x11/SDL_x11clipboard.c
--- a/src/video/x11/SDL_x11clipboard.c	Tue May 26 21:19:23 2015 -0400
+++ b/src/video/x11/SDL_x11clipboard.c	Tue May 26 21:26:27 2015 -0400
@@ -72,7 +72,7 @@
     }
 
     /* Save the selection on the root window */
-    format = TEXT_FORMAT;
+    format = XA_STRING;
     X11_XChangeProperty(display, DefaultRootWindow(display),
         X11_GetSDLCutBufferClipboardType(display), format, 8, PropModeReplace,
         (const unsigned char *)text, SDL_strlen(text));