Skip to content

x11: request available clipboard mime-types on video init #13077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

krizej
Copy link
Contributor

@krizej krizej commented May 19, 2025

Existing Issue(s)

#12481

Note, I just copied the stuff from here. I don't know if that's the right way to fix this - I have not worked with X11 previously. But it seems to do the trick.

/* when here we're notified that the clipboard had an external change, we request the
* available mime types by asking for a conversion to the TARGETS format. We should get a
* SelectionNotify event later, and when treating these results, we will push a ClipboardUpdated
* event
*/
X11_XConvertSelection(display, videodata->atoms.CLIPBOARD, videodata->atoms.TARGETS,
videodata->atoms.SDL_FORMATS, GetWindow(_this), CurrentTime);

@slouken slouken added this to the 3.4.0 milestone May 19, 2025
@slouken slouken requested a review from icculus May 20, 2025 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants