We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282c052 commit cf12496Copy full SHA for cf12496
src/video/wayland/SDL_waylandclipboard.c
@@ -80,7 +80,8 @@ Wayland_GetClipboardText(_THIS)
80
if (length > 0) {
81
text = (char*) buffer;
82
}
83
- } else if (data_device->selection_source != NULL) {
+ }
84
+ if (length == 0 && data_device->selection_source != NULL) {
85
buffer = Wayland_data_source_get_data(data_device->selection_source,
86
&length, TEXT_MIME, SDL_TRUE);
87
0 commit comments