diff options
author | kotontrion <[email protected]> | 2024-09-28 16:18:38 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-09-28 16:18:38 +0200 |
commit | d884f1985c828b4a58e635b3405138e23026de72 (patch) | |
tree | 050f5997a998b809cb601e0753e1063e980ad026 /core | |
parent | 36e810d4f452c352caa6303d877f47047c701fe7 (diff) |
core: fix astalified container not removing children
Diffstat (limited to 'core')
-rw-r--r-- | core/gjs/src/astalify.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/gjs/src/astalify.ts b/core/gjs/src/astalify.ts index bfe6623..8778be0 100644 --- a/core/gjs/src/astalify.ts +++ b/core/gjs/src/astalify.ts @@ -19,6 +19,10 @@ function setChildren(parent: Gtk.Widget, children: Gtk.Widget[]) { if (ch) parent.remove(ch) } + else if (parent instanceof Gtk.Container) { + for(const ch of parent.get_children()) + parent.remove(ch) + } // TODO: add more container types if (parent instanceof Astal.Box) { |