all repos — openbox @ eccab56a6c06c9c2f5764d7913fd794961f60214

openbox fork - make it a bit more like ryudo

fixed condition that could cause 2 windows to look focused, and bad things to occur
Dana Jansens danakj@orodu.net
commit

eccab56a6c06c9c2f5764d7913fd794961f60214

parent

9d2ba8205c981776b8120c4c7edb623864206298

1 files changed, 4 insertions(+), 2 deletions(-)

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

@@ -1081,10 +1081,12 @@

bool OBClient::focus() { - if (!(_can_focus || _focus_notify) || _focused) return false; + if (!(_can_focus || _focus_notify)) return false; + if (_focused) return true; if (_can_focus) - XSetInputFocus(otk::OBDisplay::display, _window, RevertToNone, CurrentTime); + XSetInputFocus(otk::OBDisplay::display, _window, + RevertToNone, CurrentTime); if (_focus_notify) { XEvent ce;