Skip to content
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

SDL_GetClipboardMimeTypes() does not work #12481

Open
ronaaron opened this issue Mar 6, 2025 · 1 comment
Open

SDL_GetClipboardMimeTypes() does not work #12481

ronaaron opened this issue Mar 6, 2025 · 1 comment
Milestone

Comments

@ronaaron
Copy link

ronaaron commented Mar 6, 2025

At least on Linux, even though I get e.g. "text/html" from the clipboard with SDL_GetClipboardData(), nothing is returned from:

	size_t size = 0;
	char ** mimes = SDL_GetClipboardMimeTypes(&size);

mimes points to data, but there's no data there and size remains 0.

@ronaaron
Copy link
Author

ronaaron commented Mar 6, 2025

I see that it only works if I first place data on the clipboard in my app; it doesn't seem to be aware of the system clipboard's current state otherwise.

@slouken slouken added this to the 3.4.0 milestone Mar 6, 2025
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

No branches or pull requests

2 participants