From 0bf6a4b04419bca44fa775144649053848d6525d Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 3 Aug 2023 08:12:08 +0200 Subject: Slightly improve Fl_Wayland_Screen_Driver::poll_or_select_with_delay() --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 0458ea5c1..de7bd92c9 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1682,7 +1682,7 @@ void *Fl_Wayland_Screen_Driver::control_maximize_button(void *data) { int Fl_Wayland_Screen_Driver::poll_or_select_with_delay(double time_to_wait) { - wl_display_dispatch_pending(wl_display); + if (wl_display_dispatch_pending(wl_display) > 0) return 1; return Fl_Unix_Screen_Driver::poll_or_select_with_delay(time_to_wait); } -- cgit v1.2.3