diff options
author | Yuta Doi <yuta-d@witz-inc.co.jp> | 2017-11-08 13:20:49 +0900 |
---|---|---|
committer | Yuta Doi <yuta-d@witz-inc.co.jp> | 2017-11-08 13:20:49 +0900 |
commit | c98ed0fbef242fcc5aad8fde7c3e4d022ce22672 (patch) | |
tree | 6a7ba4e5985d2558e02dfbe82a88c5d1bda2551b /src | |
parent | 2d89ec62b5118a4a5b5834b636184271c53b2312 (diff) |
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 <yuta-d@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r-- | src/libwindowmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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", |