]> Dogcows Code - chaz/openbox/commitdiff
desktops
authorDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 00:59:41 +0000 (00:59 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 00:59:41 +0000 (00:59 +0000)
src/screen.cc

index 991d3dc50aaefe3ea809cb39c13faec17ea2d91a..896f38081d15756f85a55fdeef1d16ab52a84a2e 100644 (file)
@@ -502,8 +502,9 @@ void OBScreen::manageWindow(Window window)
   Openbox::instance->addClient(client->frame->grip_left(), client);
   Openbox::instance->addClient(client->frame->grip_right(), client);
 
-  // XXX: if on the current desktop..
-  client->frame->show();
+  // if on the current desktop.. (or all desktops)
+  if (client->desktop() == _desktop || client->desktop() == (signed)0xffffffff)
+    client->frame->show();
  
   // XXX: handle any requested states such as maximized
 
@@ -641,9 +642,9 @@ void OBScreen::changeDesktop(long desktop)
   OBClient::List::iterator it, end = clients.end();
   for (it = clients.begin(); it != end; ++it) {
     if ((*it)->desktop() == old) {
-      // XXX hide
+      (*it)->frame->hide();
     } else if ((*it)->desktop() == _desktop) {
-      // XXX show
+      (*it)->frame->show();
     }
   }
 }
This page took 0.022025 seconds and 4 git commands to generate.