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:
0c173e1
)
only set focus_client to null if the window losing focus was the focus_client
author
Dana Jansens
<danakj@orodu.net>
Sun, 13 May 2007 23:13:15 +0000
(23:13 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 13 May 2007 23:13:15 +0000
(23:13 +0000)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
3175911
..
c8b7e6d
100644
(file)
--- a/
openbox/event.c
+++ b/
openbox/event.c
@@
-573,7
+573,8
@@
static void event_process(const XEvent *ec, gpointer data)
if (client && !nomove) {
frame_adjust_focus(client->frame, FALSE);
- focus_set_client(NULL);
+ if (client == focus_client)
+ focus_set_client(NULL);
/* focus_set_client has already been called for sure */
client_calc_layer(client);
}