From f77beeb981d64f3274a44ff2e16c43ed24d2a32f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 8 Oct 2012 22:49:04 +0200 Subject: [PATCH] window: Initialize workspace state before first roundtrip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- clients/window.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clients/window.c b/clients/window.c index 9a75a462..aba12540 100644 --- a/clients/window.c +++ b/clients/window.c @@ -3772,6 +3772,9 @@ display_create(int argc, char *argv[]) return NULL; } + d->workspace = 0; + d->workspace_count = 1; + /* Set up listener so we'll catch all events. */ wl_display_add_global_listener(d->display, display_handle_global, d); @@ -3794,9 +3797,6 @@ display_create(int argc, char *argv[]) wl_list_init(&d->window_list); - d->workspace = 0; - d->workspace_count = 1; - return d; }