diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-03-28 01:52:06 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-03-28 01:52:06 +0000 |
| commit | 339d76704400a6ea514817d91a2e935a13ecc928 (patch) | |
| tree | a8a9a44bd6a83fc9b8e4b3f698de3eca78f4e47e /openbox/client.c | |
| parent | 0ec2282e2ca6b80fa8c85dc366596cd009acc8a9 (diff) | |
handle time wrapping around.
Diffstat (limited to 'openbox/client.c')
| -rw-r--r-- | openbox/client.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/client.c b/openbox/client.c index a51ecfd7..203c6dbc 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3031,9 +3031,11 @@ void client_activate(ObClient *self, gboolean here, gboolean user) "source=%s\n", self->window, event_curtime, client_last_user_time, (user ? "user" : "application")); - if (!user && event_curtime && event_curtime < client_last_user_time) + if (!user && event_curtime && + !event_time_after(event_curtime, client_last_user_time)) + { client_hilite(self, TRUE); - else { + } else { if (client_normal(self) && screen_showing_desktop) screen_show_desktop(FALSE); if (self->iconic) |
