Skip to content

Commit

Permalink
fix dock preventing workspace from closing
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Mar 11, 2022
1 parent daf76c5 commit 716da3d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/windowManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,7 @@ void CWindowManager::cleanupUnusedWorkspaces() {
for (auto& work : temp) {
if (!isWorkspaceVisible(work.getID())) {
// check if it has any children
bool hasChildren = false;
for (auto& window : windows) {
if (window.getWorkspaceID() == work.getID()) {
hasChildren = true;
break;
}
}
bool hasChildren = getWindowsOnWorkspace(work.getID()) > 0;

if (hasChildren) {
// Has windows opened on it.
Expand Down

0 comments on commit 716da3d

Please sign in to comment.