projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d2ba82
)
fixed condition that could cause 2 windows to look focused, and bad things to occur
author
Dana Jansens
<danakj@orodu.net>
Tue, 7 Jan 2003 05:21:12 +0000
(
05:21
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 7 Jan 2003 05:21:12 +0000
(
05:21
+0000)
src/client.cc
patch
|
blob
|
history
diff --git
a/src/client.cc
b/src/client.cc
index 8386ef592cc5bed38d04f5a06ef466cd979ef9b1..72a98afbf7338f4602494380ac214abbb525683e 100644
(file)
--- 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;