summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-08-03 08:12:08 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2023-08-03 08:12:08 +0200
commit0bf6a4b04419bca44fa775144649053848d6525d (patch)
tree6831d6fee88ff3cb7e48b138ed591b4bef79b4a4 /src
parent79d3b8d69d019ffc19c63eba621dd8d10560e47b (diff)
Slightly improve Fl_Wayland_Screen_Driver::poll_or_select_with_delay()
Diffstat (limited to 'src')
-rw-r--r--src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
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);
}