diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-24 14:14:30 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-24 14:14:30 +1000 |
| commit | d1e5f484461e27133317c78b81347d05dc3a2760 (patch) | |
| tree | 7e84f152a66b69366d6abb67af63ec7306fca7bd /modules/windowinfo/Buttons.qml | |
| parent | [CI] chore: update flake (diff) | |
| download | caelestia-shell-d1e5f484461e27133317c78b81347d05dc3a2760.tar.gz caelestia-shell-d1e5f484461e27133317c78b81347d05dc3a2760.tar.bz2 caelestia-shell-d1e5f484461e27133317c78b81347d05dc3a2760.zip | |
internal: rename Hyprland -> Hypr
Prevent shadowing
Fixes window info not changing on switching to an empty workspace
Diffstat (limited to 'modules/windowinfo/Buttons.qml')
| -rw-r--r-- | modules/windowinfo/Buttons.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/windowinfo/Buttons.qml b/modules/windowinfo/Buttons.qml index 67e97a2..7cb767e 100644 --- a/modules/windowinfo/Buttons.qml +++ b/modules/windowinfo/Buttons.qml @@ -78,7 +78,7 @@ ColumnLayout { Button { required property int index - readonly property int wsId: Math.floor((Hyprland.activeWsId - 1) / 10) * 10 + index + 1 + readonly property int wsId: Math.floor((Hypr.activeWsId - 1) / 10) * 10 + index + 1 readonly property bool isCurrent: root.client?.workspace.id === wsId color: isCurrent ? Colours.tPalette.m3surfaceContainerHighest : Colours.palette.m3tertiaryContainer @@ -87,7 +87,7 @@ ColumnLayout { disabled: isCurrent function onClicked(): void { - Hyprland.dispatch(`movetoworkspace ${wsId},address:0x${root.client?.address}`); + Hypr.dispatch(`movetoworkspace ${wsId},address:0x${root.client?.address}`); } } } @@ -116,7 +116,7 @@ ColumnLayout { text: root.client?.lastIpcObject.floating ? qsTr("Tile") : qsTr("Float") function onClicked(): void { - Hyprland.dispatch(`togglefloating address:0x${root.client?.address}`); + Hypr.dispatch(`togglefloating address:0x${root.client?.address}`); } } @@ -133,7 +133,7 @@ ColumnLayout { text: root.client?.lastIpcObject.pinned ? qsTr("Unpin") : qsTr("Pin") function onClicked(): void { - Hyprland.dispatch(`pin address:0x${root.client?.address}`); + Hypr.dispatch(`pin address:0x${root.client?.address}`); } } } @@ -144,7 +144,7 @@ ColumnLayout { text: qsTr("Kill") function onClicked(): void { - Hyprland.dispatch(`killwindow address:0x${root.client?.address}`); + Hypr.dispatch(`killwindow address:0x${root.client?.address}`); } } } |