diff --git a/Keys/MainWindowAwareKeyListener.h b/Keys/MainWindowAwareKeyListener.h index 46bbcd8..5f67088 100644 --- a/Keys/MainWindowAwareKeyListener.h +++ b/Keys/MainWindowAwareKeyListener.h @@ -64,7 +64,7 @@ protected: newWorkspace++; workspaceNode = getModel()->getRoot()->findWorkspaceByName(std::to_string(newWorkspace)); } while (workspaceNode != nullptr && workspaceNode->childCount() != 0 - && (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())); + || (preferredOutput != nullptr && preferredOutput == workspaceNode->findOutput())); return std::to_string(newWorkspace); }