projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec6338
)
dont assert for focusing !isNormal() windows
author
Dana Jansens
<danakj@orodu.net>
Sun, 28 Jul 2002 17:37:31 +0000
(17:37 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 28 Jul 2002 17:37:31 +0000
(17:37 +0000)
src/Workspace.cc
patch
|
blob
|
history
diff --git
a/src/Workspace.cc
b/src/Workspace.cc
index 88541b079d09a15d9faaa2a66f16baaec44796bb..70d1923c83788fe89bd6ec9f1a86ea65ad2fa1f5 100644
(file)
--- 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);
}