X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).
authorRyan C. Gordon
Tue, 26 May 2015 21:26:27 -0400
changeset 965012d477422f47
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
     1.1 --- a/src/video/x11/SDL_x11clipboard.c	Tue May 26 21:19:23 2015 -0400
     1.2 +++ b/src/video/x11/SDL_x11clipboard.c	Tue May 26 21:26:27 2015 -0400
     1.3 @@ -72,7 +72,7 @@
     1.4      }
     1.5  
     1.6      /* Save the selection on the root window */
     1.7 -    format = TEXT_FORMAT;
     1.8 +    format = XA_STRING;
     1.9      X11_XChangeProperty(display, DefaultRootWindow(display),
    1.10          X11_GetSDLCutBufferClipboardType(display), format, 8, PropModeReplace,
    1.11          (const unsigned char *)text, SDL_strlen(text));