From 611754cfd7fc7f5ed84e404a31d95771c5d4e500 Mon Sep 17 00:00:00 2001 From: Tuur Vanhoutte <4633209+zjeffer@users.noreply.github.com> Date: Sat, 23 Nov 2024 15:16:26 +0100 Subject: [PATCH] Fix build after Hyprland function was moved (#141) --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 00c35e8..a606d98 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,7 +71,7 @@ const std::string& getWorkspaceFromMonitor(const PHLMONITOR& monitor, const std: for (const auto& workspaceName : g_vMonitorWorkspaceMap[monitor->ID]) { PHLWORKSPACE workspacePtr = g_pCompositor->getWorkspaceByName(workspaceName); // the workspace we want is either not yet created (=nullptr) or already created but empty (!= nullptr but no windows) - if (workspacePtr == nullptr || g_pCompositor->getWindowsOnWorkspace(workspacePtr->m_iID) == 0) { + if (workspacePtr == nullptr || workspacePtr->getWindows() == 0) { return workspaceName; } }