mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 15:46:52 +08:00
Wayland: support DnD from X11-FLTK to Wayland-FLTK
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user