epist alt-tab works now! i.e. NET_ACTIVE_WINDOW is working
This commit is contained in:
parent
867d3d9a94
commit
15d3efa69c
1 changed files with 9 additions and 0 deletions
|
@ -347,6 +347,15 @@ void Openbox::setFocusedClient(OBClient *c)
|
||||||
XSetInputFocus(otk::OBDisplay::display, _focused_screen->focuswindow(),
|
XSetInputFocus(otk::OBDisplay::display, _focused_screen->focuswindow(),
|
||||||
RevertToNone, CurrentTime);
|
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)
|
void Openbox::execute(int screen, const std::string &bin)
|
||||||
|
|
Loading…
Reference in a new issue