threaded for performance

This commit is contained in:
Zacharias-Brohn
2025-11-10 19:14:02 +01:00
parent 8e6cca78cb
commit 80ac9081d1
3 changed files with 4 additions and 7 deletions
+3 -1
View File
@@ -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
} }
-6
View File
@@ -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();
} }
} }
+1
View File
@@ -1,4 +1,5 @@
//@ pragma UseQApplication //@ pragma UseQApplication
//@ pragma Env QSG_RENDER_LOOP=threaded
import Quickshell import Quickshell
import qs.Modules import qs.Modules