]> Dogcows Code - chaz/openbox/commitdiff
sending windows to workspaces works. focus messes up on fast switching
authorDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 05:17:39 +0000 (05:17 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 7 Jan 2003 05:17:39 +0000 (05:17 +0000)
src/screen.cc

index 49d63409b23de7a7240304414efd9a88107e5d44..7f15b243a4a2d62a246ff75368ac7a2a4b3c7a67 100644 (file)
@@ -535,12 +535,6 @@ void OBScreen::manageWindow(Window window)
 
   Openbox::instance->bindings()->grabButtons(true, client);
 
-  if (shown) {
-    // XXX: make this optional or more intelligent
-    if (client->normal())
-      client->focus();
-  }
-
   // call the python NEWWINDOW binding
   EventData *data = new_event_data(_number, window, EventNewWindow, 0);
   Openbox::instance->bindings()->fireEvent(data);
@@ -650,7 +644,7 @@ void OBScreen::changeDesktop(long desktop)
                                      _desktop);
 
   if (old == _desktop) return;
-  
+
   OBClient::List::iterator it, end = clients.end();
   for (it = clients.begin(); it != end; ++it) {
     if ((*it)->desktop() == old) {
@@ -660,9 +654,8 @@ void OBScreen::changeDesktop(long desktop)
     }
   }
 
-  // if nothing is focused, force the callbacks to fire
-//  if (!Openbox::instance->focusedClient())
-//    Openbox::instance->setFocusedClient(0);
+  // force the callbacks to fire
+  Openbox::instance->setFocusedClient(0);
 }
 
 void OBScreen::changeNumDesktops(long num)
This page took 0.024986 seconds and 4 git commands to generate.