From 5bd740abe70dbf061c21971902eb442681d2b1e9 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 3 Jun 2025 13:29:11 +0800 Subject: bar: save cpu usage Stop window preview when not visible --- modules/bar/popouts/Wrapper.qml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/bar/popouts/Wrapper.qml') diff --git a/modules/bar/popouts/Wrapper.qml b/modules/bar/popouts/Wrapper.qml index 7782d90..0b6fba8 100644 --- a/modules/bar/popouts/Wrapper.qml +++ b/modules/bar/popouts/Wrapper.qml @@ -8,6 +8,8 @@ Item { required property ShellScreen screen + visible: width > 0 && height > 0 + implicitWidth: content.implicitWidth implicitHeight: content.implicitHeight + BorderConfig.rounding * 2 -- cgit v1.2.3-freya