diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-28 17:37:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-28 17:37:31 +0000 |
| commit | 86af1224bd80ed987f9c2389efa9bf9744ebada8 (patch) | |
| tree | f20f2c385191cac72adb32dc3375c471ff0285c9 | |
| parent | 5ec63388b8fbbdffc0999ba727ad718f87d683fc (diff) | |
dont assert for focusing !isNormal() windows
| -rw-r--r-- | src/Workspace.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index 88541b07..70d1923c 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc @@ -231,9 +231,10 @@ void Workspace::setFocused(const BlackboxWindow *w, bool focused) { for (i = 0, it = windowList.begin(); it != end; ++it, ++i) if (*it == w) break; - assert(it != end); - - clientmenu->setItemSelected(i, focused); + // if its == end, then a window thats not in the windowList + // got focused, such as a !isNormal() window. + if (it != end) + clientmenu->setItemSelected(i, focused); } |
