popouts: fix activewindow screencopy

This commit is contained in:
2 * r + 2 * t 2025-06-17 16:40:28 +10:00
parent 746f41da16
commit ee0f243ca3

View file

@ -58,7 +58,7 @@ Item {
ScreencopyView {
id: preview
captureSource: ToplevelManager.toplevels.values.find(t => t.title === Hyprland.activeClient?.title) ?? null
captureSource: Hyprland.activeClient ? ToplevelManager.activeToplevel : null
live: visible
constraintSize.width: Config.bar.sizes.windowPreviewSize