Skip to content

Commit

Permalink
Fix build after Hyprland function was moved (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
zjeffer authored Nov 23, 2024
1 parent 4aee4a6 commit 611754c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 611754c

Please sign in to comment.