e_comp_screen: set the fake screen size 74/317474/1
authorSooChan Lim <sc1.lim@samsung.com>
Thu, 2 Jan 2025 06:43:11 +0000 (15:43 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Thu, 2 Jan 2025 10:39:06 +0000 (19:39 +0900)
set the fake screen size when therer is no display output
which is connected.

Change-Id: I6d79002492b5f36a0894b210c6fa301faeb2c947

src/bin/e_comp_screen.c

index a3865bfe87080815a1893cdf36c9514de56f6f79..32f56b2ddafc59991b09fb40fb1b8ecf755984e0 100644 (file)
@@ -429,8 +429,17 @@ e_comp_screen_size_update(E_Comp_Screen *comp_screen)
           max_h = output_h;
      }
 
-   comp_screen->w = sum_w;
-   comp_screen->h = max_h;
+   if (sum_w > 0 && max_h > 0)
+     {
+        comp_screen->w = sum_w;
+        comp_screen->h = max_h;
+     }
+   else
+     {
+        // FIXME: fake screen size is 1x2
+        comp_screen->w = 1;
+        comp_screen->h = 2;
+     }
 
    comp = e_comp_get();
    if (comp->ee)