diff --git a/Keys/MainWindowAwareKeyListener.h b/Keys/MainWindowAwareKeyListener.h index 5f67088..6f5a7df 100644 --- a/Keys/MainWindowAwareKeyListener.h +++ b/Keys/MainWindowAwareKeyListener.h @@ -63,8 +63,9 @@ protected: do { newWorkspace++; workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace)); - } while (workspaceNode != nullptr && workspaceNode->childCount() != 0 - || (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())); + } while (workspaceNode != nullptr + && (workspaceNode->childCount() != 0 + || (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput()))); return std::to_string(newWorkspace); }