From 80ac9081d1c887244c4937191818b38ede418701 Mon Sep 17 00:00:00 2001 From: Zacharias-Brohn Date: Mon, 10 Nov 2025 19:14:02 +0100 Subject: [PATCH] threaded for performance --- Bar.qml | 4 +++- Modules/Launcher.qml | 6 ------ shell.qml | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Bar.qml b/Bar.qml index 384cb23..7d9c09d 100644 --- a/Bar.qml +++ b/Bar.qml @@ -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 } diff --git a/Modules/Launcher.qml b/Modules/Launcher.qml index a852bde..489765f 100644 --- a/Modules/Launcher.qml +++ b/Modules/Launcher.qml @@ -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(); } } diff --git a/shell.qml b/shell.qml index 1223802..8621364 100644 --- a/shell.qml +++ b/shell.qml @@ -1,4 +1,5 @@ //@ pragma UseQApplication +//@ pragma Env QSG_RENDER_LOOP=threaded import Quickshell import qs.Modules