]> Dogcows Code - chaz/openbox/commitdiff
properly watch for windows on other workspaces when mapping.
authorDana Jansens <danakj@orodu.net>
Wed, 14 Aug 2002 06:26:42 +0000 (06:26 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 14 Aug 2002 06:26:42 +0000 (06:26 +0000)
src/Window.cc

index dd5f3b71b824e64ff499557d69e6b05dd909e73d..f18d4dead2aaafdb4adef0f1a84392f2eba14ebb 100644 (file)
@@ -2612,11 +2612,12 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) {
 #endif // DEBUG
 
   /*
-     Even thought the window wants to be shown, if it is not on the current
+     Even though the window wants to be shown, if it is not on the current
      workspace, then it isn't going to be shown right now.
   */
-  if (blackbox_attrib.workspace != screen->getCurrentWorkspaceID())
-    current_state = WithdrawnState;
+  if (blackbox_attrib.workspace != screen->getCurrentWorkspaceID() &&
+      blackbox_attrib.workspace < screen->getWorkspaceCount())
+    if (current_state == NormalState) current_state = WithdrawnState;
 
   switch (current_state) {
   case IconicState:
This page took 0.032691 seconds and 4 git commands to generate.