diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-01-11 19:03:31 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2026-01-11 19:03:31 +0100 |
| commit | 7c3b1f00f524172e348151aedb0fb4c4a91185b3 (patch) | |
| tree | 1b50229275054d0c81aa7cba7a1131a711c13541 /src | |
| parent | 7b6a779fd3a911c25edf58efc36862c07202a5fa (diff) | |
Don't pretend Wayland supports Fl::add_system_handler().
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 3 | ||||
| -rw-r--r-- | src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 4 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 53b393203..399d8249b 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1050,8 +1050,7 @@ static system_handler_link *sys_handlers = 0; - X11: XEvent - Windows: MSG - OS X: NSEvent - - Wayland: NULL (FLTK runs the event handler(s) just before calling \e wl_display_dispatch()) - + - Wayland: N/A (Fl::add_system_handler has no effect under Wayland) \param ha The event handler function to register \param data User data to include on each call diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 80c6a5e80..c474867d5 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1421,12 +1421,8 @@ static const struct wl_registry_listener registry_listener = { }; -extern int fl_send_system_handlers(void *); - - static void wayland_socket_callback(int fd, struct wl_display *display) { - if (fl_send_system_handlers(NULL)) return; if (wl_display_prepare_read(display) == -1) { wl_display_dispatch_pending(display); return; |
