From c98ed0fbef242fcc5aad8fde7c3e4d022ce22672 Mon Sep 17 00:00:00 2001 From: Yuta Doi Date: Wed, 8 Nov 2017 13:20:49 +0900 Subject: Change requestSurface() to return surface_id libwindowmanager set surface_id to QT_IVI_SURFACE_ID for now, but the process will be removed in the future because it depends on Qt. So requestSurface() is changed to return surface_id. If requestSurface() occurs errors, negative value is returned. It is necessary to use return value of requestSurface() for the applications. Change-Id: Ice2a5fe152a3957f0132e0358ebd8a535bdfa7ce Signed-off-by: Yuta Doi --- src/libwindowmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libwindowmanager.cpp b/src/libwindowmanager.cpp index 267fecc..e44295c 100644 --- a/src/libwindowmanager.cpp +++ b/src/libwindowmanager.cpp @@ -276,7 +276,7 @@ int LibWindowmanager::Impl::requestSurface(json_object *object) { fprintf(stderr, "putenv failed: %m\n"); rc = -errno; } else { - rc = 0; // Single point of success + rc = id; // Single point of success } } else { fprintf(stderr, "Could not get surface ID from WM: %s\n", -- cgit 1.2.3-korg