mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-02 06:45:58 +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) {
|
for (auto& work : temp) {
|
||||||
if (!isWorkspaceVisible(work.getID())) {
|
if (!isWorkspaceVisible(work.getID())) {
|
||||||
// check if it has any children
|
// check if it has any children
|
||||||
bool hasChildren = false;
|
bool hasChildren = getWindowsOnWorkspace(work.getID()) > 0;
|
||||||
for (auto& window : windows) {
|
|
||||||
if (window.getWorkspaceID() == work.getID()) {
|
|
||||||
hasChildren = true;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasChildren) {
|
if (hasChildren) {
|
||||||
// Has windows opened on it.
|
// Has windows opened on it.
|
||||||
|
|
Loading…
Reference in a new issue