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()