diff --git a/unite@hardpixel.eu/panel.js b/unite@hardpixel.eu/panel.js index 776fded..aae6bef 100644 --- a/unite@hardpixel.eu/panel.js +++ b/unite@hardpixel.eu/panel.js @@ -146,10 +146,12 @@ var WindowButtons = class WindowButtons extends PanelExtension { _onPositionChange() { const controls = this.controls.container + if (controls.reparent) { controls.reparent(this.container) } else { const currentParent = controls.get_parent() + if (currentParent) { currentParent.remove_child(controls) this.container.add_child(controls)