]> Dogcows Code - chaz/openbox/commitdiff
dont assert for focusing !isNormal() windows
authorDana Jansens <danakj@orodu.net>
Sun, 28 Jul 2002 17:37:31 +0000 (17:37 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 28 Jul 2002 17:37:31 +0000 (17:37 +0000)
src/Workspace.cc

index 88541b079d09a15d9faaa2a66f16baaec44796bb..70d1923c83788fe89bd6ec9f1a86ea65ad2fa1f5 100644 (file)
@@ -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);
 }
 
 
This page took 0.022033 seconds and 4 git commands to generate.