]> Dogcows Code - chaz/openbox/commitdiff
epist alt-tab works now! i.e. NET_ACTIVE_WINDOW is working
authorDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 01:37:47 +0000 (01:37 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 01:37:47 +0000 (01:37 +0000)
src/openbox.cc

index 6ed00a2c84bbff5d4cd377af961d69bdf05a0999..6b5251b5b8f38e92efe2c439993582f96c01d108 100644 (file)
@@ -347,6 +347,15 @@ void Openbox::setFocusedClient(OBClient *c)
     XSetInputFocus(otk::OBDisplay::display, _focused_screen->focuswindow(),
                    RevertToNone, CurrentTime);
   }
+  // set the NET_ACTIVE_WINDOW hint for all screens
+  ScreenList::iterator it, end = _screens.end();
+  for (it = _screens.begin(); it != end; ++it) {
+    int num = (*it)->number();
+    Window root = otk::OBDisplay::screenInfo(num)->rootWindow();
+    _property->set(root, otk::OBProperty::net_active_window,
+                   otk::OBProperty::Atom_Window,
+                   (c && _focused_screen == *it) ? c->window() : None);
+  }
 }
 
 void Openbox::execute(int screen, const std::string &bin)
This page took 0.022726 seconds and 4 git commands to generate.