mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 06:35:40 +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]) {
|
} else if (strcmp(mime_type, "text/plain") == 0 && !fl_selection_type[1]) {
|
||||||
fl_selection_type[1] = Fl::clipboard_plain_text;
|
fl_selection_type[1] = Fl::clipboard_plain_text;
|
||||||
fl_selection_offer_type = "text/plain";
|
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