mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-07 16:35:59 +01:00
fix dock preventing workspace from closing
This commit is contained in:
parent
daf76c5f54
commit
716da3d04e
1 changed files with 1 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue