server: Move last_active variable initialization (Valgrind).

Fixes: 5b56bad50b ("server: Make window struct a server object.")
This commit is contained in:
Aida Jonikienė 2024-09-24 16:36:37 +03:00 committed by Alexandre Julliard
parent 20c8c55519
commit a4e77b33f6
Notes: Alexandre Julliard 2024-09-24 23:26:03 +02:00
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6552

View file

@ -564,7 +564,6 @@ static struct window *create_window( struct window *parent, struct window *owner
win->desktop = desktop;
win->class = class;
win->atom = atom;
win->last_active = win->handle;
win->win_region = NULL;
win->update_region = NULL;
win->style = 0;
@ -597,6 +596,7 @@ static struct window *create_window( struct window *parent, struct window *owner
win->nb_extra_bytes = extra_bytes;
}
if (!(win->handle = alloc_user_handle( win, USER_WINDOW ))) goto failed;
win->last_active = win->handle;
/* if parent belongs to a different thread and the window isn't */
/* top-level, attach the two threads */