x11: request available clipboard mime-types on video init

This commit is contained in:
krizej 2025-05-19 20:04:40 +02:00
parent 6c61a94a4b
commit bd9a3e61bc
No known key found for this signature in database
GPG Key ID: E601DCD1855E02B8
1 changed files with 4 additions and 0 deletions

View File

@ -475,6 +475,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;
}