You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the testclipboard sample and replacing the SDL_SetClipboardData call with SDL_SetClipboardText("Hello world?"); produces random garbage when trying to read the clipboard content from another application, or most often it just returns STRING as content instead. Using SDL_SetClipboardData with text/plain mime type works as expected though.
The text was updated successfully, but these errors were encountered:
It looks like the SDL_SetClipboardData cleanup callback is called before anything tries to access the clipboard data, resulting in garbage data from freed data when the data callback is issued. The clipboardtest sample seems to only work because the cleanup callback was not provided.
Using the testclipboard sample and replacing the
SDL_SetClipboardData
call withSDL_SetClipboardText("Hello world?");
produces random garbage when trying to read the clipboard content from another application, or most often it just returnsSTRING
as content instead. UsingSDL_SetClipboardData
withtext/plain
mime type works as expected though.The text was updated successfully, but these errors were encountered: