summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorkotontrion <[email protected]>2024-09-28 16:18:38 +0200
committerkotontrion <[email protected]>2024-09-28 16:18:38 +0200
commitd884f1985c828b4a58e635b3405138e23026de72 (patch)
tree050f5997a998b809cb601e0753e1063e980ad026 /core
parent36e810d4f452c352caa6303d877f47047c701fe7 (diff)
core: fix astalified container not removing children
Diffstat (limited to 'core')
-rw-r--r--core/gjs/src/astalify.ts4
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) {