summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/Wrapper.qml
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-03-16 17:07:54 -0400
committerFreya Murphy <freya@freyacat.org>2026-03-16 17:07:54 -0400
commitbb6717666a669aa81cda28896ed292ca5af55ece (patch)
tree5f3c5fed20fd3bf8fe38e10d7e09b81558c64a79 /modules/bar/popouts/Wrapper.qml
parentadd date to clock (diff)
downloadcaelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.tar.gz
caelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.tar.bz2
caelestia-shell-bb6717666a669aa81cda28896ed292ca5af55ece.zip
change things
Diffstat (limited to 'modules/bar/popouts/Wrapper.qml')
-rw-r--r--modules/bar/popouts/Wrapper.qml56
1 files changed, 1 insertions, 55 deletions
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<real> 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