root panel window handles focus
This commit is contained in:
parent
bd826c14ac
commit
ed6cd2c8d5
6 changed files with 34 additions and 61 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue