From bb6717666a669aa81cda28896ed292ca5af55ece Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 16 Mar 2026 17:07:54 -0400 Subject: change things --- modules/bar/popouts/Wrapper.qml | 56 +---------------------------------------- 1 file changed, 1 insertion(+), 55 deletions(-) (limited to 'modules/bar/popouts/Wrapper.qml') diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 05a1d3c..73a7556 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -3,8 +3,6 @@ pragma ComponentBehavior: Bound import qs.components import qs.services import qs.config -import qs.modules.windowinfo -import qs.modules.controlcenter import Quickshell import Quickshell.Wayland import Quickshell.Hyprland @@ -23,29 +21,15 @@ Item { property real currentCenter property bool hasCurrent - property string detachedMode property string queuedMode - readonly property bool isDetached: detachedMode.length > 0 property int animLength: Appearance.anim.durations.normal property list animCurve: Appearance.anim.curves.emphasized - function detach(mode: string): void { - animLength = Appearance.anim.durations.large; - if (mode === "winfo") { - detachedMode = mode; - } else { - queuedMode = mode; - detachedMode = "any"; - } - focus = true; - } - function close(): void { hasCurrent = false; animCurve = Appearance.anim.curves.emphasizedAccel; animLength = Appearance.anim.durations.normal; - detachedMode = ""; animCurve = Appearance.anim.curves.emphasized; } @@ -75,20 +59,6 @@ Item { } } - HyprlandFocusGrab { - active: root.isDetached - windows: [QsWindow.window] - onCleared: root.close() - } - - Binding { - when: root.isDetached - - target: QsWindow.window - property: "WlrLayershell.keyboardFocus" - value: WlrKeyboardFocus.OnDemand - } - Binding { when: root.hasCurrent && root.currentName === "wirelesspassword" @@ -100,7 +70,7 @@ Item { Comp { id: content - shouldBeActive: root.hasCurrent && !root.detachedMode + shouldBeActive: root.hasCurrent anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter @@ -109,30 +79,6 @@ Item { } } - Comp { - shouldBeActive: root.detachedMode === "winfo" - anchors.centerIn: parent - - sourceComponent: WindowInfo { - screen: root.screen - client: Hypr.activeToplevel - } - } - - Comp { - shouldBeActive: root.detachedMode === "any" - anchors.centerIn: parent - - sourceComponent: ControlCenter { - screen: root.screen - active: root.queuedMode - - function close(): void { - root.close(); - } - } - } - Behavior on x { Anim { duration: root.animLength -- cgit v1.3.1-freya