From 13f1911624359e8370c070981bb4b391b3caaae1 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Mon, 26 Aug 2024 09:38:57 +0200 Subject: Implement and document Fl::add_system_handler() for Wayland --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/drivers') diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 7a376efb4..01fd46536 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1335,7 +1335,11 @@ 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; struct pollfd fds = (struct pollfd) { fd, POLLIN, 0 }; do { if (wl_display_dispatch(display) == -1) { -- cgit v1.2.3