diff --git a/src/window.cc b/src/window.cc index 5c1ce52..3357852 100644 --- a/src/window.cc +++ b/src/window.cc @@ -887,7 +887,7 @@ int _selectWindow(const char* windowName) } } - if (!_selectWindowID(index)) { + if (_selectWindowID(index)) { return index; }