diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-07 05:21:12 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-07 05:21:12 +0000 |
| commit | eccab56a6c06c9c2f5764d7913fd794961f60214 (patch) | |
| tree | 391d353496614a769e450f481d28036ba47290f7 /src | |
| parent | 9d2ba8205c981776b8120c4c7edb623864206298 (diff) | |
fixed condition that could cause 2 windows to look focused, and bad things to occur
Diffstat (limited to 'src')
| -rw-r--r-- | src/client.cc | 6 |
1 files changed, 4 insertions, 2 deletions
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; |
