From 3beea4f4a687c809570a21fea07cb72af7b73cf0 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sun, 27 Jul 2025 14:30:48 +0200 Subject: [PATCH] Possible fix for Hyprland workspaces --- Bar/Modules/Workspace.qml | 2 +- Settings/Settings.qml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Bar/Modules/Workspace.qml b/Bar/Modules/Workspace.qml index 7d2f788..8140d43 100644 --- a/Bar/Modules/Workspace.qml +++ b/Bar/Modules/Workspace.qml @@ -188,7 +188,7 @@ Item { anchors.fill: parent cursorShape: Qt.PointingHandCursor onClicked: { - WorkspaceManager.switchToWorkspace(model.id); + WorkspaceManager.switchToWorkspace(model.idx); } z: 20 hoverEnabled: true diff --git a/Settings/Settings.qml b/Settings/Settings.qml index af52ca3..fb471d6 100644 --- a/Settings/Settings.qml +++ b/Settings/Settings.qml @@ -28,7 +28,9 @@ Singleton { reload() } onLoaded: function() { - WallpaperManager.setCurrentWallpaper(settings.currentWallpaper, true); + Qt.callLater(function () { + WallpaperManager.setCurrentWallpaper(settings.currentWallpaper, true); + }) } onLoadFailed: function(error) { settingAdapter = {}