FLTK logo

[master] 73b24c2 - Add missing FL_RELEASE event after dnd() (#549)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 73b24c2 - Add missing FL_RELEASE event after dnd() (#549) "Matthias Melcher" Nov 23, 2022  
 
commit 73b24c2104ddc6f962797635cbcc4d96556df7cd
Author:     Matthias Melcher <github@matthiasm.com>
AuthorDate: Wed Nov 23 10:33:34 2022 +0100
Commit:     GitHub <noreply@github.com>
CommitDate: Wed Nov 23 10:33:34 2022 +0100

    Add missing FL_RELEASE event after dnd() (#549)
    
    On X11, FLTK would not send a required FL_RELEASE
    event to the data source window.

 src/fl_dnd_x.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git src/fl_dnd_x.cxx src/fl_dnd_x.cxx
index 08e3c0d..982ed65 100644
--- src/fl_dnd_x.cxx
+++ src/fl_dnd_x.cxx
@@ -202,6 +202,7 @@ int Fl_X11_Screen_Driver::dnd(int unused) {
   }
 
   fl_local_grab = 0;
+  Fl::handle(FL_RELEASE, source_fl_win);
   source_fl_win->cursor(FL_CURSOR_DEFAULT);
   return 1;
 }
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.