Skip to content

Commit

Permalink
fix crash in moveWorkspaceToMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed May 31, 2022
1 parent 3e28a8b commit 0f8712e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,11 @@ void CKeybindManager::moveWorkspaceToMonitor(std::string args) {

const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(WORKSPACEID);

if (!PWORKSPACE) {
Debug::log(ERR, "moveWorkspaceToMonitor workspace doesn't exist!");
return;
}

g_pCompositor->moveWorkspaceToMonitor(PWORKSPACE, PMONITOR);
}

Expand Down

0 comments on commit 0f8712e

Please sign in to comment.