summaryrefslogtreecommitdiff
path: root/luals-stubs
diff options
context:
space:
mode:
Diffstat (limited to 'luals-stubs')
-rw-r--r--luals-stubs/screen.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/luals-stubs/screen.lua b/luals-stubs/screen.lua
index 55253f1c..fc1b37f8 100644
--- a/luals-stubs/screen.lua
+++ b/luals-stubs/screen.lua
@@ -22,4 +22,9 @@ function screen:onShown() end
--- been popped off of the stack.
function screen:onHidden() end
+--- Called when this screen is about to be popped off of the stack. If this
+--- returns false, it will not be popped. May be a function, or any boolean
+--- convertable value.
+function screen:canPop() end
+
return screen