diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-28 01:53:37 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-28 01:53:37 +0000 |
| commit | d20f84f5ded581c57df5904c6fa550dac05ad036 (patch) | |
| tree | 413e791bc0738dce4d469edb8019db8515a28cbc | |
| parent | 339d76704400a6ea514817d91a2e935a13ecc928 (diff) | |
more handling time wraparounds
| -rw-r--r-- | openbox/client.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/client.c b/openbox/client.c index 203c6dbc..6866e8d8 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -414,8 +414,11 @@ void client_manage(Window window) else { /* If time stamp is old, don't steal focus */ - if (self->user_time && self->user_time < client_last_user_time) + if (self->user_time && + !event_time_after(self->user_time, client_last_user_time)) + { activate = FALSE; + } /* Don't steal focus from globally active clients. I stole this idea from KWin. It seems nice. */ |
