diff --git a/nw_xlib.lua b/nw_xlib.lua index 7649402..5eb3f7e 100644 --- a/nw_xlib.lua +++ b/nw_xlib.lua @@ -992,6 +992,9 @@ function app:main_display() return d end end + + -- if none matched, return the first display available + return self:displays()[1] end function app:active_display()