diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-03 08:12:08 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-08-03 08:12:08 +0200 |
| commit | 0bf6a4b04419bca44fa775144649053848d6525d (patch) | |
| tree | 6831d6fee88ff3cb7e48b138ed591b4bef79b4a4 /src | |
| parent | 79d3b8d69d019ffc19c63eba621dd8d10560e47b (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.cxx | 2 |
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); } |
