aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-02 18:37:45 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-02 18:49:44 +0900
commit40ec5ee486893ccb1d259c7980b077cb087494aa (patch)
tree99d2c1cfd9a6151012273ee747378906a91ad3ab
parent6d11d35f86649511e6a5b4b8ab6b6ae13cb4d556 (diff)
Fix WM attach layers to different screen.
If setting 2 display from 1 Soc, Window Manager attaches layers to different screen since corresponding to upgrade of wayland-ivi-extension. Fix the issue. Bug-AGL: SPEC-1577 Change-Id: Ib6eb4a19dc892348271762f236cc0650a83a8f70 Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
-rw-r--r--src/window_manager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window_manager.cpp b/src/window_manager.cpp
index c57ab09..76b5939 100644
--- a/src/window_manager.cpp
+++ b/src/window_manager.cpp
@@ -185,12 +185,12 @@ int WindowManager::init()
// This protocol needs the output, so lets just add our mapping here...
this->controller->add_proxy_to_id_mapping(
- this->outputs.back()->proxy.get(),
+ this->outputs.front()->proxy.get(),
wl_proxy_get_id(reinterpret_cast<struct wl_proxy *>(
- this->outputs.back()->proxy.get())));
+ this->outputs.front()->proxy.get())));
// Create screen
- this->controller->create_screen(this->outputs.back()->proxy.get());
+ this->controller->create_screen(this->outputs.front()->proxy.get());
// Set display to controller
this->controller->display = this->display;