We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 462fde5 commit 062c7e7Copy full SHA for 062c7e7
devel/dflayout.lua
@@ -12,8 +12,10 @@ local utils = require('utils')
12
---@field views gui.View[] list of views to add to main ZScreen
13
---@field update fun() called by main window to recompute demo frames
14
15
-local visible_when_not_focused = true
16
-function demos_are_visible()
+if visible_when_not_focused == nil then
+ visible_when_not_focused = true
17
+end
18
+local function demos_are_visible()
19
if not screen then return false end
20
if visible_when_not_focused then return true end
21
return screen:isActive() and screen:hasFocus()
0 commit comments