root panel window handles focus
This commit is contained in:
parent
bd826c14ac
commit
ed6cd2c8d5
6 changed files with 34 additions and 61 deletions
|
|
@ -5,8 +5,6 @@ import qs.config
|
|||
import qs.services
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Quickshell.Hyprland
|
||||
import Quickshell.Wayland
|
||||
|
||||
StyledPanelWindow {
|
||||
id: root
|
||||
|
|
@ -18,15 +16,8 @@ StyledPanelWindow {
|
|||
|
||||
background.color: Styling.theme.base200
|
||||
|
||||
WlrLayershell.layer: WlrLayer.Top
|
||||
WlrLayershell.keyboardFocus: root.visible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
|
||||
HyprlandFocusGrab {
|
||||
active: Visibility.storybook
|
||||
windows: [root]
|
||||
onCleared: {
|
||||
Visibility.storybook = false;
|
||||
}
|
||||
onFocusedChanged: {
|
||||
Visibility.storybook = focused;
|
||||
}
|
||||
|
||||
StyledTabBar {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue