client: set active of queue_info before reset queue 73/168973/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Mon, 29 Jan 2018 08:00:59 +0000 (17:00 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Mon, 29 Jan 2018 08:02:08 +0000 (17:02 +0900)
Change-Id: I525e8da0bd996aaa41979b17a424608403d28ed7

src/wayland-tbm-client.c

index a388606..ad8e586 100644 (file)
@@ -1091,14 +1091,14 @@ handle_tbm_queue_active(void *data,
        WL_TBM_TRACE("                  pid:%d", getpid());
 #endif
 
+       queue_info->is_active = 1;
+       queue_info->usage = usage;
+
        if (need_flush) {
                /* flush the allocated surfaces at the client */
-               tbm_surface_queue_set_size(queue_info->tbm_queue, queue_size, 1);
                queue_info->active_flush = need_flush;
+               tbm_surface_queue_set_size(queue_info->tbm_queue, queue_size, 1);
        }
-
-       queue_info->is_active = 1;
-       queue_info->usage = usage;
 }
 
 static void