From: Dana Jansens Date: Wed, 28 Mar 2007 19:57:07 +0000 (+0000) Subject: can't use (unsigned)-1 for a max time, because timestamps wraparound and stuff. user... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=00ddaf06bbf9b0d1ca980c5bed1a56e8be1c5cb6;p=chaz%2Fopenbox can't use (unsigned)-1 for a max time, because timestamps wraparound and stuff. user the last_user_time as a default for new windows instead. --- diff --git a/openbox/client.c b/openbox/client.c index 3e069464..c9e09f54 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -272,7 +272,7 @@ void client_manage(Window window) self->wmstate = WithdrawnState; /* make sure it gets updated first time */ self->layer = -1; self->desktop = screen_num_desktops; /* always an invalid value */ - self->user_time = ~0; /* maximum value, always newer than the real time */ + self->user_time = client_last_user_time; client_get_all(self); client_restore_session_state(self);