ilmControl: propagate roundtrip return value to caller of commitChanges
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Tue, 29 Jul 2014 15:19:01 +0000 (17:19 +0200)
committerNobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
Tue, 12 Aug 2014 13:15:15 +0000 (22:15 +0900)
Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c

index eb36393..8ffb06a 100644 (file)
@@ -2771,8 +2771,10 @@ wayland_commitChanges(void)
     if (ctx->wl.controller != NULL) {
         ivi_controller_commit_changes(ctx->wl.controller);
 
-        display_roundtrip_queue(ctx->wl.display, ctx->wl.queue);
-        returnValue = ILM_SUCCESS;
+        if (display_roundtrip_queue(ctx->wl.display, ctx->wl.queue) != -1)
+        {
+            returnValue = ILM_SUCCESS;
+        }
     }
 
     release_instance();