Fix drag-n-drop from X11 FLTK app to Wayland app (#519)

This commit is contained in:
ManoloFLTK 2022-10-25 15:00:51 +02:00
parent e0c3fe939f
commit 84cdc1ba12
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ int Fl_X11_Screen_Driver::dnd(int unused) {
Window target_window = 0;
Fl_Window* local_window = 0;
int dndversion = 4; int dest_x, dest_y;
XSetSelectionOwner(fl_display, fl_XdndSelection, fl_message_window, fl_event_time);
XSetSelectionOwner(fl_display, fl_XdndSelection, source_window, fl_event_time);
while (Fl::pushed()) {
// figure out what window we are pointing at: