dont assert for focusing !isNormal() windows
This commit is contained in:
parent
5ec63388b8
commit
86af1224bd
1 changed files with 4 additions and 3 deletions
|
@ -231,9 +231,10 @@ void Workspace::setFocused(const BlackboxWindow *w, bool focused) {
|
||||||
for (i = 0, it = windowList.begin(); it != end; ++it, ++i)
|
for (i = 0, it = windowList.begin(); it != end; ++it, ++i)
|
||||||
if (*it == w)
|
if (*it == w)
|
||||||
break;
|
break;
|
||||||
assert(it != end);
|
// if its == end, then a window thats not in the windowList
|
||||||
|
// got focused, such as a !isNormal() window.
|
||||||
clientmenu->setItemSelected(i, focused);
|
if (it != end)
|
||||||
|
clientmenu->setItemSelected(i, focused);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue