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_GetClipboardData can return stale data #9587

Closed
Susko3 opened this issue Apr 19, 2024 · 3 comments
Closed

SDL_GetClipboardData can return stale data #9587

Susko3 opened this issue Apr 19, 2024 · 3 comments
Milestone

Comments

@Susko3
Copy link
Contributor

Susko3 commented Apr 19, 2024

Repro steps (for Windows)

  1. Store some data with SDL_SetClipboardData with mime type image/png (it doesn't reproduce with image/bmp)
  2. In another application, copy some data. Could be a BMP image or some text.
    • calling SDL_SetClipboardText doesn't reproduce it
  3. Call SDL_HasClipboardData with image/png → notice that it returns SDL_TRUE
  4. Call SDL_GetClipboardData → notice that you get your original data back, even though logically, the clipboard should only have the other application's data
@slouken slouken added this to the 3.2.0 milestone Apr 19, 2024
@Green-Sky
Copy link
Contributor

This is more or less a duplicate of #8338 .
Nice to have more eyes on this :)

@Susko3
Copy link
Contributor Author

Susko3 commented Apr 20, 2024

Not really a duplicate, yours only involves externally setting the clipboard, while this one mixes internal and external.

@slouken slouken modified the milestones: 3.2.0, 3.4.0 Dec 4, 2024
@slouken slouken modified the milestones: 3.4.0, 3.2.0 Dec 31, 2024
@slouken slouken closed this as completed in 6575b81 Jan 1, 2025
@slouken
Copy link
Collaborator

slouken commented Jan 1, 2025

Fixed!

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

3 participants