summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-08 09:38:28 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-06-08 09:38:28 +0200
commite5693efb75f8ab50362256c630421e71291cfb46 (patch)
tree76b6489dc8bcef121c3b88fd08982442a19fe14f
parent651d9f3e7960fc17d0ab1b27830d160fac1be132 (diff)
Wayland: support DnD from X11-FLTK to Wayland-FLTK
-rw-r--r--src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx
index 894ce78d4..6fa757306 100644
--- a/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx
+++ b/src/drivers/Wayland/fl_wayland_clipboard_dnd.cxx
@@ -300,6 +300,9 @@ static void data_offer_handle_offer(void *data, struct wl_data_offer *offer,
} else if (strcmp(mime_type, "text/plain") == 0 && !fl_selection_type[1]) {
fl_selection_type[1] = Fl::clipboard_plain_text;
fl_selection_offer_type = "text/plain";
+ } else if (strcmp(mime_type, "UTF8_STRING") == 0 && !fl_selection_type[1]) {
+ fl_selection_type[1] = Fl::clipboard_plain_text;
+ fl_selection_offer_type = "text/plain";
}
}