all repos — openbox @ 15d3efa69c40c93ae609a791e4b57c3d793e646f

openbox fork - make it a bit more like ryudo

epist alt-tab works now! i.e. NET_ACTIVE_WINDOW is working
Dana Jansens danakj@orodu.net
commit

15d3efa69c40c93ae609a791e4b57c3d793e646f

parent

867d3d9a94b059a0bd7574f13e1c0c669abaf8a3

1 files changed, 9 insertions(+), 0 deletions(-)

jump to
M src/openbox.ccsrc/openbox.cc

@@ -347,6 +347,15 @@ assert(_focused_screen);

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)