add wayland and hyprland focus
This commit is contained in:
parent
185121d0d7
commit
9d6a88aa43
1 changed files with 13 additions and 0 deletions
|
|
@ -2,6 +2,8 @@ import qs.components
|
||||||
import qs.services
|
import qs.services
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
|
import Quickshell.Hyprland
|
||||||
|
import Quickshell.Wayland
|
||||||
|
|
||||||
StyledPanelWindow {
|
StyledPanelWindow {
|
||||||
id: window
|
id: window
|
||||||
|
|
@ -12,6 +14,17 @@ StyledPanelWindow {
|
||||||
implicitWidth: 800
|
implicitWidth: 800
|
||||||
implicitHeight: 400
|
implicitHeight: 400
|
||||||
|
|
||||||
|
WlrLayershell.layer: WlrLayer.Top
|
||||||
|
WlrLayershell.keyboardFocus: window.visible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||||
|
|
||||||
|
HyprlandFocusGrab {
|
||||||
|
active: Visibility.configuration
|
||||||
|
windows: [window]
|
||||||
|
onCleared: {
|
||||||
|
Visibility.configuration = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StyledTabBar {
|
StyledTabBar {
|
||||||
id: tabs
|
id: tabs
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue