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.

This commit is contained in:
Dana Jansens 2007-03-28 19:57:07 +00:00
parent 6372bd7c0d
commit 00ddaf06bb

View file

@ -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);