mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 14:25:40 +00:00
x11: request available clipboard mime-types on video init
This commit is contained in:
@@ -447,6 +447,10 @@ static bool X11_VideoInit(SDL_VideoDevice *_this)
|
||||
|
||||
X11_InitPen(_this);
|
||||
|
||||
// Request currently available mime-types in the clipboard.
|
||||
X11_XConvertSelection(data->display, data->atoms.CLIPBOARD, data->atoms.TARGETS,
|
||||
data->atoms.SDL_FORMATS, GetWindow(_this), CurrentTime);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user