HyprlandFocusGrab
This commit is contained in:
@@ -23,6 +23,8 @@ PanelWindow {
|
|||||||
property alias doNotDisturb: dndSwitch.checked
|
property alias doNotDisturb: dndSwitch.checked
|
||||||
visible: false
|
visible: false
|
||||||
|
|
||||||
|
mask: Region { item: backgroundRect }
|
||||||
|
|
||||||
IpcHandler {
|
IpcHandler {
|
||||||
id: ipcHandler
|
id: ipcHandler
|
||||||
target: "root"
|
target: "root"
|
||||||
@@ -61,6 +63,9 @@ PanelWindow {
|
|||||||
to: Screen.width - backgroundRect.implicitWidth - 10
|
to: Screen.width - backgroundRect.implicitWidth - 10
|
||||||
duration: 300
|
duration: 300
|
||||||
easing.type: Easing.OutCubic
|
easing.type: Easing.OutCubic
|
||||||
|
onStopped: {
|
||||||
|
focusGrab.active = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
@@ -105,15 +110,24 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
HyprlandFocusGrab {
|
||||||
anchors.fill: parent
|
id: focusGrab
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
active: false
|
||||||
onClicked: {
|
windows: [ root ]
|
||||||
if ( root.centerShown ) {
|
onCleared: {
|
||||||
root.centerShown = false;
|
root.centerShown = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
// MouseArea {
|
||||||
|
// anchors.fill: parent
|
||||||
|
// acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
|
||||||
|
// onClicked: {
|
||||||
|
// if ( root.centerShown ) {
|
||||||
|
// root.centerShown = false;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: backgroundRect
|
id: backgroundRect
|
||||||
|
|||||||
Reference in New Issue
Block a user