summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/ActiveWindow.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-27 21:37:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-27 21:37:15 +1000
commitb264ae9888575df22e15d89a361845f84202106a (patch)
tree4b3d85117265f35b2ddda0fd00e3643b3b16d27c /modules/bar/popouts/ActiveWindow.qml
parenticons: fix grade more icons (diff)
downloadcaelestia-shell-b264ae9888575df22e15d89a361845f84202106a.tar.gz
caelestia-shell-b264ae9888575df22e15d89a361845f84202106a.tar.bz2
caelestia-shell-b264ae9888575df22e15d89a361845f84202106a.zip
internal: use hyprlandtoplevel
Diffstat (limited to 'modules/bar/popouts/ActiveWindow.qml')
-rw-r--r--modules/bar/popouts/ActiveWindow.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/modules/bar/popouts/ActiveWindow.qml b/modules/bar/popouts/ActiveWindow.qml
index bbb2d7a..9575dde 100644
--- a/modules/bar/popouts/ActiveWindow.qml
+++ b/modules/bar/popouts/ActiveWindow.qml
@@ -12,7 +12,7 @@ Item {
required property Item wrapper
- implicitWidth: Hyprland.activeClient ? child.implicitWidth : -Appearance.padding.large * 2
+ implicitWidth: Hyprland.activeToplevel ? child.implicitWidth : -Appearance.padding.large * 2
implicitHeight: child.implicitHeight
Column {
@@ -33,7 +33,7 @@ Item {
Layout.alignment: Qt.AlignVCenter
implicitSize: details.implicitHeight
- source: Icons.getAppIcon(Hyprland.activeClient?.wmClass ?? "", "image-missing")
+ source: Icons.getAppIcon(Hyprland.activeToplevel?.lastIpcObject.class ?? "", "image-missing")
}
ColumnLayout {
@@ -44,14 +44,14 @@ Item {
StyledText {
Layout.fillWidth: true
- text: Hyprland.activeClient?.title ?? ""
+ text: Hyprland.activeToplevel?.title ?? ""
font.pointSize: Appearance.font.size.normal
elide: Text.ElideRight
}
StyledText {
Layout.fillWidth: true
- text: Hyprland.activeClient?.wmClass ?? ""
+ text: Hyprland.activeToplevel?.lastIpcObject.class ?? ""
color: Colours.palette.m3onSurfaceVariant
elide: Text.ElideRight
}
@@ -91,7 +91,7 @@ Item {
ScreencopyView {
id: preview
- captureSource: Hyprland.activeClient ? ToplevelManager.activeToplevel : null
+ captureSource: Hyprland.activeToplevel?.wayland ?? null
live: visible
constraintSize.width: Config.bar.sizes.windowPreviewSize