Skip to content
Permalink
Browse files
X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).
Partially fixes Bugzilla #2266.
  • Loading branch information
icculus committed May 27, 2015
1 parent baea64e commit cc493d7195bf1ad686f39a16cfc4e91900702fae
Showing with 1 addition and 1 deletion.
  1. +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));

0 comments on commit cc493d7

Please sign in to comment.