diff options
Diffstat (limited to 'core/lua/astal')
-rw-r--r-- | core/lua/astal/widget.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/lua/astal/widget.lua b/core/lua/astal/widget.lua index 1f5b07b..f525f4e 100644 --- a/core/lua/astal/widget.lua +++ b/core/lua/astal/widget.lua @@ -60,6 +60,12 @@ local function set_children(parent, children) if rm ~= nil then parent:remove(rm) end + elseif Gtk.Container:is_type_of(parent) and + !(Astal.Box:is_type_of(parent) or + Astal.Stack:is_type_of(parent)) then + for _, ch in ipairs(parent:get_children()) do + parent:remove(ch) + end end -- TODO: add more container types |