mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-21 17:09:06 -07:00
server: Move last_active variable initialization (Valgrind).
Fixes: 5b56bad50b
("server: Make window struct a server object.")
This commit is contained in:
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
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue