FLTK logo

[master] a025a46 - Wayland platform: add support of FL_LEAVE event.

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] a025a46 - Wayland platform: add support of FL_LEAVE event. "ManoloFLTK" Jun 28, 2022  
 
commit a025a46cacf37293f30898ba731fc8d4b64f1160
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Tue Jun 28 18:47:15 2022 +0200
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Tue Jun 28 18:47:15 2022 +0200

    Wayland platform: add support of FL_LEAVE event.

 src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index fbf27ad..9f48d19 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -263,7 +263,7 @@ static void pointer_enter(void *data,
   Fl::e_y = wl_fixed_to_int(surface_y) / f;
   Fl::e_y_root = Fl::e_y + win->y();
   set_event_xy(win);
-  Fl::handle(FL_ENTER, win);
+  Fl::handle(FL_ENTER, win->top_window());
   //fprintf(stderr, "pointer_enter window=%p\n", win);
   seat->pointer_focus = surface;
 }
@@ -280,6 +280,7 @@ static void pointer_leave(void *data,
   if (win) {
     Fl::belowmouse(0);
     set_event_xy(win);
+    Fl::handle(FL_LEAVE, win->top_window());
   }
 //fprintf(stderr, "pointer_leave surface=%p window=%p\n", surface, win);
 }
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'.