summaryrefslogtreecommitdiff
path: root/core/lua/astal/variable.lua
diff options
context:
space:
mode:
authorAylur <[email protected]>2024-09-11 20:52:44 +0000
committerAylur <[email protected]>2024-09-11 20:52:44 +0000
commit0e259e49357d5389db897414fc52b50b1ce1d14c (patch)
treea4bb497e24eae2bd807f638953433f455f17f7a5 /core/lua/astal/variable.lua
parent374d76f4152ea46987203f49642d7d46aff221ab (diff)
example: add lua simple-bar
Diffstat (limited to 'core/lua/astal/variable.lua')
-rw-r--r--core/lua/astal/variable.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/lua/astal/variable.lua b/core/lua/astal/variable.lua
index 1e894b5..02d6b45 100644
--- a/core/lua/astal/variable.lua
+++ b/core/lua/astal/variable.lua
@@ -123,7 +123,9 @@ end
function Variable:drop()
self.variable.emit_dropped()
- self.variable.run_dispose()
+ Astal.Time.idle(GObject.Closure(function()
+ self.variable.run_dispose()
+ end))
end
---@param callback function