diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-10-17 19:16:01 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2022-10-17 19:16:01 +0200 |
| commit | 857462529bc57cd24dc83fad513ec99765dec462 (patch) | |
| tree | 6a1e5d39d1b6dca36bd66396d34267b0628570c9 /src | |
| parent | a944758aea5fee68e0d6870c54d3b92d823e2b7f (diff) | |
Allow DnD from Wayland FLTK app to X11 FLTK app (#516)
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
