From 857462529bc57cd24dc83fad513ec99765dec462 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 17 Oct 2022 19:16:01 +0200 Subject: Allow DnD from Wayland FLTK app to X11 FLTK app (#516) --- src/Fl_x.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index c8cac5464..37a9dbc71 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1551,7 +1551,7 @@ int fl_handle(const XEvent& thisevent) XGetWindowProperty(fl_display, fl_dnd_source_window, fl_XdndTypeList, 0, 0x8000000L, False, XA_ATOM, &actual, &format, &count, &remaining, &cm_buffer); - if (actual != XA_ATOM || format != 32 || count<4 || !cm_buffer) { + if (actual != XA_ATOM || format != 32 || (count<4 && count!=1) || !cm_buffer) { if ( cm_buffer ) { XFree(cm_buffer); cm_buffer = 0; } goto FAILED; } -- cgit v1.2.3