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

Feature request: Have the clipboard update events say which clipboard changed #12260

Open
rakslice opened this issue Feb 11, 2025 · 0 comments
Open
Milestone

Comments

@rakslice
Copy link

rakslice commented Feb 11, 2025

Right now SDL 2 and SDL 3 have separate sets of API calls for two clipboard-like things in X11 and similar, the Clipboard and the Primary Selection, and the SDL_CLIPBOARDUPDATE (SDL 2) / SDL_EVENT_CLIPBOARD_UPDATE (SDL 3) event correctly fires for either of them changing.

However it doesn't indicate which of them changed.

In practice this means the best an application can do if it needs to know when a user copied something to a particular one, for time sequencing reasons, is to bolt on some logic after the event to keep track of which contents changed and try to deduce what the event was, and even then that will never be 100% because it can't disambiguate the case when a copy happened of the same thing that was already in the clipboard.

@slouken slouken added this to the 3.4.0 milestone Feb 11, 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