window: Initialize workspace state before first roundtrip
The workspace state parameters were initialized after the first roundtrip. If a workspace manager state event was received during this roundtrip the state parameters were cleared leaving an incorrect state. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
committed by
Kristian Høgsberg
parent
71c474416a
commit
f77beeb981
+3
-3
@@ -3772,6 +3772,9 @@ display_create(int argc, char *argv[])
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
d->workspace = 0;
|
||||||
|
d->workspace_count = 1;
|
||||||
|
|
||||||
/* Set up listener so we'll catch all events. */
|
/* Set up listener so we'll catch all events. */
|
||||||
wl_display_add_global_listener(d->display,
|
wl_display_add_global_listener(d->display,
|
||||||
display_handle_global, d);
|
display_handle_global, d);
|
||||||
@@ -3794,9 +3797,6 @@ display_create(int argc, char *argv[])
|
|||||||
|
|
||||||
wl_list_init(&d->window_list);
|
wl_list_init(&d->window_list);
|
||||||
|
|
||||||
d->workspace = 0;
|
|
||||||
d->workspace_count = 1;
|
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user