root panel window handles focus
This commit is contained in:
parent
bd826c14ac
commit
ed6cd2c8d5
6 changed files with 34 additions and 61 deletions
|
|
@ -3,11 +3,9 @@ pragma ComponentBehavior: Bound
|
|||
import qs.components
|
||||
import qs.config
|
||||
import qs.services
|
||||
import Quickshell.Hyprland
|
||||
import QtQuick
|
||||
import QtQuick.Layouts
|
||||
import Quickshell.Io
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Widgets
|
||||
|
||||
StyledPanelWindow {
|
||||
|
|
@ -18,26 +16,19 @@ StyledPanelWindow {
|
|||
implicitWidth: rect.width
|
||||
implicitHeight: rect.height
|
||||
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
WlrLayershell.keyboardFocus: root.visible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
|
||||
Process {
|
||||
id: process
|
||||
}
|
||||
|
||||
onFocusedChanged: {
|
||||
Visibility.powermenu = focused;
|
||||
}
|
||||
|
||||
WrapperItem {
|
||||
id: rect
|
||||
|
||||
margin: 14
|
||||
|
||||
HyprlandFocusGrab {
|
||||
active: Visibility.powermenu
|
||||
windows: [root]
|
||||
onCleared: {
|
||||
Visibility.powermenu = false;
|
||||
}
|
||||
}
|
||||
|
||||
StyledListView {
|
||||
id: list
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue