Fix WM attach layers to different screen.
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Thu, 2 Aug 2018 09:37:45 +0000 (18:37 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Wed, 8 Aug 2018 06:06:26 +0000 (15:06 +0900)
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>
src/window_manager.cpp

index 4a155c9..62bbbcb 100644 (file)
@@ -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;