threaded for performance
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
@@ -18,10 +19,11 @@ Scope {
|
||||
required property var modelData
|
||||
property bool trayMenuVisible: false
|
||||
screen: modelData
|
||||
property var root: Quickshell.shellDir
|
||||
|
||||
Process {
|
||||
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
|
||||
}
|
||||
|
||||
|
||||
@@ -24,11 +24,6 @@ Scope {
|
||||
WlrLayershell.layer: WlrLayer.Overlay
|
||||
WlrLayershell.keyboardFocus: WlrKeyboardFocus.Exclusive
|
||||
|
||||
HyprlandFocusGrab {
|
||||
id: focusGrab
|
||||
windows: [ searchInput ]
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
if ( !visible ) {
|
||||
searchInput.text = "";
|
||||
@@ -54,7 +49,6 @@ Scope {
|
||||
openAnim.start();
|
||||
}
|
||||
}
|
||||
focusGrab.active = true;
|
||||
searchInput.forceActiveFocus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user