e_comp_screen: move canvas_init function
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 6 Dec 2024 00:31:47 +0000 (09:31 +0900)
committerJunseok Kim <juns.kim@samsung.com>
Fri, 13 Dec 2024 05:15:51 +0000 (14:15 +0900)
Change-Id: I289758faed3d4f487a2c52af9a98ffe6810c8ec2

src/bin/e_comp_screen.c

index 706bfa8e8e0415e77201b913eb79568b9ec6dbb1..77ec9cb7ed99a2c431467e6ffb996bb3b22b4289 100644 (file)
@@ -831,6 +831,19 @@ e_comp_screen_init()
      }
    e_main_ts_end("\tE_Hwc Ecore_Evas Init Done");
 
+   /* get the current screen geometry */
+   ecore_evas_geometry_get(comp->ee, NULL, NULL, &w, &h);
+
+   /* canvas */
+   e_main_ts_begin("\tE_Comp_Canvas Init");
+   if (!e_comp_canvas_init(w, h))
+     {
+        e_main_ts_end("\tE_Comp_Canvas Init Failed");
+        e_error_message_show(_("Enlightenment cannot initialize outputs!\n"));
+        goto failed_comp_screen;
+     }
+   e_main_ts_end("\tE_Comp_Canvas Init Done");
+
    _e_comp_screen_e_screens_setup(e_comp_screen, -1, -1);
 
    /* update the screen, outputs and planes at the idle enterer of the ecore_loop */
@@ -853,19 +866,6 @@ e_comp_screen_init()
      }
    e_main_ts_end("\tE_Server Init Done");
 
-   /* get the current screen geometry */
-   ecore_evas_geometry_get(comp->ee, NULL, NULL, &w, &h);
-
-   /* canvas */
-   e_main_ts_begin("\tE_Comp_Canvas Init");
-   if (!e_comp_canvas_init(w, h))
-     {
-        e_main_ts_end("\tE_Comp_Canvas Init Failed");
-        e_error_message_show(_("Enlightenment cannot initialize outputs!\n"));
-        goto failed_comp_screen;
-     }
-   e_main_ts_end("\tE_Comp_Canvas Init Done");
-
    /* e_comp_screen_setup */
    if (!_e_comp_screen_screen_policy_setup())
      {