From bb74d263e25720dc3f4103df489853739de1bd9f Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Sun, 12 Feb 2023 08:52:09 +0100 Subject: Wayland: add necessary check to support OWL --- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx index 88a199e50..9bdee61b0 100644 --- a/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx +++ b/src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx @@ -1412,6 +1412,7 @@ int Fl_Wayland_Screen_Driver::screen_num_unscaled(int x, int y) float Fl_Wayland_Screen_Driver::scale(int n) { Fl_Wayland_Screen_Driver::output *output; + if (wl_list_length(&outputs) == 0) return 1; // necessary under OWL int i = 0; wl_list_for_each(output, &outputs, link) { if (i++ == n) break; -- cgit v1.2.3