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
88541b0
..
70d1923
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);
}