diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-13 23:13:15 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-13 23:13:15 +0000 |
| commit | 66af88b27ccfbd00e1d52f3b0e994ae8a56898f8 (patch) | |
| tree | 1b12af7fc2db8ba3e091b98cb1a233c06fde29fe /openbox | |
| parent | 0c173e15772fc8a21a641001e79d91262bc9d344 (diff) | |
only set focus_client to null if the window losing focus was the focus_client
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c index 31759113..c8b7e6dc 100644 --- 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); } |
