threaded for performance
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
@@ -18,10 +19,11 @@ Scope {
|
|||||||
required property var modelData
|
required property var modelData
|
||||||
property bool trayMenuVisible: false
|
property bool trayMenuVisible: false
|
||||||
screen: modelData
|
screen: modelData
|
||||||
|
property var root: Quickshell.shellDir
|
||||||
|
|
||||||
Process {
|
Process {
|
||||||
id: ncProcess
|
id: ncProcess
|
||||||
command: ["sh", "-c", "qs -p ./shell.qml ipc call root showCenter"]
|
command: ["sh", "-c", `qs -p ${bar.root}/shell.qml ipc call root showCenter`]
|
||||||
running: false
|
running: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,11 +24,6 @@ Scope {
|
|||||||
WlrLayershell.layer: WlrLayer.Overlay
|
WlrLayershell.layer: WlrLayer.Overlay
|
||||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
||||||
|
|
||||||
HyprlandFocusGrab {
|
|
||||||
id: focusGrab
|
|
||||||
windows: [ searchInput ]
|
|
||||||
}
|
|
||||||
|
|
||||||
onVisibleChanged: {
|
onVisibleChanged: {
|
||||||
if ( !visible ) {
|
if ( !visible ) {
|
||||||
searchInput.text = "";
|
searchInput.text = "";
|
||||||
@@ -54,7 +49,6 @@ Scope {
|
|||||||
openAnim.start();
|
openAnim.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
focusGrab.active = true;
|
|
||||||
searchInput.forceActiveFocus();
|
searchInput.forceActiveFocus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user