ilmControl: screen dimension is set only from current output mode
authorMarcus Fritzsch <marcus.fritzsch@xse.de>
Wed, 30 Jul 2014 10:16:31 +0000 (12:16 +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 8ffb06a..d971df8 100644 (file)
@@ -492,9 +492,13 @@ output_listener_mode(void *data,
     (void)width;
     (void)height;
     (void)refresh;
-    struct screen_context *ctx_scrn = data;
-    ctx_scrn->prop.screenWidth = width;
-    ctx_scrn->prop.screenHeight = height;
+
+    if (flags & WL_OUTPUT_MODE_CURRENT)
+    {
+        struct screen_context *ctx_scrn = data;
+        ctx_scrn->prop.screenWidth = width;
+        ctx_scrn->prop.screenHeight = height;
+    }
 }
 
 static void