소스 검색

X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).

Partially fixes Bugzilla #2266.
Ryan C. Gordon 10 년 전
부모
커밋
cc493d7195
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/x11/SDL_x11clipboard.c

+ 1 - 1
src/video/x11/SDL_x11clipboard.c

@@ -72,7 +72,7 @@ X11_SetClipboardText(_THIS, const char *text)
     }
 
     /* 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));