]> Dogcows Code - chaz/openbox/commitdiff
dont let windows get initially mapped when they arent on the current workspace
authorDana Jansens <danakj@orodu.net>
Tue, 13 Aug 2002 21:25:41 +0000 (21:25 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 13 Aug 2002 21:25:41 +0000 (21:25 +0000)
src/Window.cc

index c58e0b3dea0ef4f55eecbb03e8f1582d3517cfca..60182ce952e38dbccb224df533d8b570792db4f7 100644 (file)
@@ -2611,6 +2611,13 @@ void BlackboxWindow::mapRequestEvent(const XMapRequestEvent *re) {
           client.window);
 #endif // DEBUG
 
+  /*
+     Even thought 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;
+
   switch (current_state) {
   case IconicState:
     iconify();
This page took 0.026939 seconds and 4 git commands to generate.