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:
parent
6372bd7c0d
commit
00ddaf06bb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue