X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=72a98afbf7338f4602494380ac214abbb525683e;hb=eccab56a6c06c9c2f5764d7913fd794961f60214;hp=8386ef592cc5bed38d04f5a06ef466cd979ef9b1;hpb=4c768d5d63154e416e1282396dc48492d0585d42;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index 8386ef59..72a98afb 100644 --- a/src/client.cc +++ b/src/client.cc @@ -1081,10 +1081,12 @@ void OBClient::shade(bool shade) 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;