diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-23 20:17:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-23 20:17:22 +0000 |
| commit | b1fe0dbbc2ef4472ac8893d9b3b20e9cb149af6d (patch) | |
| tree | d413b303da897df6f33dd376e47fccc20ad27938 /openbox | |
| parent | f68eb1fc250b13a473d825ac5c69b6d5e28b9595 (diff) | |
dont refocus the focused window, that just causes so many problems (with alt-tab :)
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c index 54db6cc8..478567f3 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -581,8 +581,10 @@ static void event_handle_client(Client *client, XEvent *e) #ifdef DEBUG_FOCUS g_message("FocusIn on client for %lx", client->window); #endif - focus_set_client(client); - frame_adjust_focus(client->frame, TRUE); + if (client != focus_client) { + focus_set_client(client); + frame_adjust_focus(client->frame, TRUE); + } break; case FocusOut: #ifdef DEBUG_FOCUS |
