root panel window handles focus

This commit is contained in:
Benjamin Palko 2025-09-16 15:33:41 -04:00
parent bd826c14ac
commit ed6cd2c8d5
6 changed files with 34 additions and 61 deletions

View file

@ -6,8 +6,6 @@ import qs.components
import qs.services
import QtQuick
import QtQuick.Layouts
import Quickshell.Hyprland
import Quickshell.Wayland
import Quickshell.Widgets
StyledPanelWindow {
@ -20,21 +18,11 @@ StyledPanelWindow {
list.currentIndex = 0;
search.clear();
}
Visibility.launcher = focused;
}
implicitWidth: rect.width
implicitHeight: rect.height
WlrLayershell.layer: WlrLayer.Top
WlrLayershell.keyboardFocus: window.visible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
HyprlandFocusGrab {
active: Visibility.launcher
windows: [window]
onCleared: {
Visibility.launcher = false;
}
}
WrapperItem {
id: rect