From a046c5b3e0041b7db89cd1a3c1193e56a379fcd4 Mon Sep 17 00:00:00 2001 From: Hannes Date: Sat, 22 Aug 2026 16:43:26 +0200 Subject: [PATCH] disabled Background (had errors and no use) --- modules/bar/widgets/Tray.qml | 12 ++++++------ modules/bar/widgets/Workspaces.qml | 7 +++++-- shell.qml | 2 +- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/bar/widgets/Tray.qml b/modules/bar/widgets/Tray.qml index 1a2e728..2287aef 100644 --- a/modules/bar/widgets/Tray.qml +++ b/modules/bar/widgets/Tray.qml @@ -75,12 +75,12 @@ Row { // Workspace Row edges: Edges.Top | Edges.Left gravity: Edges.Bottom | Edges.Right adjustment: PopupAdjustment.FlipX | PopupAdjustment.SlideY - onAnchoring: { - rect.x = trayArea.clickX - rect.y = trayArea.clickY - rect.w = 1 - rect.h = 1 - } + // onAnchoring: { + // rect.x = trayArea.clickX + // rect.y = trayArea.clickY + // rect.w = 1 + // rect.h = 1 + // } } } diff --git a/modules/bar/widgets/Workspaces.qml b/modules/bar/widgets/Workspaces.qml index bc42dc5..601d528 100644 --- a/modules/bar/widgets/Workspaces.qml +++ b/modules/bar/widgets/Workspaces.qml @@ -69,8 +69,11 @@ Rectangle { anchors.fill: parent onClicked: { console.log("[Workspaces] Switch to workspace: " + workspaceData.id) - Hyprland.dispatch("workspace " + workspaceData.id) - Hyprland.dispatch("hl.dsp.focus({ workspace = "+workspaceData.id+" })") + if (Hyprland.usingLua) { + Hyprland.dispatch("hl.dsp.focus({ workspace = "+workspaceData.id+" })") + } else { + Hyprland.dispatch("workspace " + workspaceData.id) + } } Row { diff --git a/shell.qml b/shell.qml index 8506bd7..d8fa682 100644 --- a/shell.qml +++ b/shell.qml @@ -26,7 +26,7 @@ ShellRoot { id : wlLoader } - Background {} + // Background {} function openWlogout() { wlLoader.openWlogout()