summaryrefslogtreecommitdiff
path: root/modules/bar/popouts/ActiveWindow.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/popouts/ActiveWindow.qml')
-rw-r--r--modules/bar/popouts/ActiveWindow.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bar/popouts/ActiveWindow.qml b/modules/bar/popouts/ActiveWindow.qml
index d9e9b9e..547c019 100644
--- a/modules/bar/popouts/ActiveWindow.qml
+++ b/modules/bar/popouts/ActiveWindow.qml
@@ -39,7 +39,7 @@ Item {
ScreencopyView {
id: preview
- captureSource: ToplevelManager.toplevels.values.find(t => t.title === Hyprland.activeClient?.title) ?? null
+ captureSource: visible ? (ToplevelManager.toplevels.values.find(t => t.title === Hyprland.activeClient?.title) ?? null) : null
live: true
constraintSize.width: BarConfig.sizes.windowPreviewSize