Skip to content

Commit

Permalink
X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).
Browse files Browse the repository at this point in the history
Partially fixes Bugzilla #2266.
  • Loading branch information
icculus committed May 27, 2015
1 parent baea64e commit cc493d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11clipboard.c
Expand Up @@ -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));
Expand Down

0 comments on commit cc493d7

Please sign in to comment.