mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
Wayland platform: add support of FL_LEAVE event.
This commit is contained in:
@@ -263,7 +263,7 @@ static void pointer_enter(void *data,
|
|||||||
Fl::e_y = wl_fixed_to_int(surface_y) / f;
|
Fl::e_y = wl_fixed_to_int(surface_y) / f;
|
||||||
Fl::e_y_root = Fl::e_y + win->y();
|
Fl::e_y_root = Fl::e_y + win->y();
|
||||||
set_event_xy(win);
|
set_event_xy(win);
|
||||||
Fl::handle(FL_ENTER, win);
|
Fl::handle(FL_ENTER, win->top_window());
|
||||||
//fprintf(stderr, "pointer_enter window=%p\n", win);
|
//fprintf(stderr, "pointer_enter window=%p\n", win);
|
||||||
seat->pointer_focus = surface;
|
seat->pointer_focus = surface;
|
||||||
}
|
}
|
||||||
@@ -280,6 +280,7 @@ static void pointer_leave(void *data,
|
|||||||
if (win) {
|
if (win) {
|
||||||
Fl::belowmouse(0);
|
Fl::belowmouse(0);
|
||||||
set_event_xy(win);
|
set_event_xy(win);
|
||||||
|
Fl::handle(FL_LEAVE, win->top_window());
|
||||||
}
|
}
|
||||||
//fprintf(stderr, "pointer_leave surface=%p window=%p\n", surface, win);
|
//fprintf(stderr, "pointer_leave surface=%p window=%p\n", surface, win);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user