mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 18:55:32 +00:00
X11: use XA_STRING for text SDL puts on the clipboard (thanks, "chw"!).
Partially fixes Bugzilla #2266.
This commit is contained in:
parent
baea64e642
commit
cc493d7195
|
@ -72,7 +72,7 @@ X11_SetClipboardText(_THIS, const char *text)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save the selection on the root window */
|
/* Save the selection on the root window */
|
||||||
format = TEXT_FORMAT;
|
format = XA_STRING;
|
||||||
X11_XChangeProperty(display, DefaultRootWindow(display),
|
X11_XChangeProperty(display, DefaultRootWindow(display),
|
||||||
X11_GetSDLCutBufferClipboardType(display), format, 8, PropModeReplace,
|
X11_GetSDLCutBufferClipboardType(display), format, 8, PropModeReplace,
|
||||||
(const unsigned char *)text, SDL_strlen(text));
|
(const unsigned char *)text, SDL_strlen(text));
|
||||||
|
|
Loading…
Reference in a new issue