e_client: add function for adjust tramsform using base_output_resolution 11/205811/1 accepted/tizen/unified/20190510.012047 submit/tizen/20190509.093504
authorJunseok, Kim <juns.kim@samsung.com>
Thu, 9 May 2019 08:45:53 +0000 (17:45 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Thu, 9 May 2019 08:45:53 +0000 (17:45 +0900)
Change-Id: If6b177f91fd44ed3822632ffaee8af22e52b9cbe

src/bin/e_client.c
src/bin/e_client.h
src/bin/e_policy_wl.c

index a33175edecf1f949b1c64bce21c92afc7aaf9e9c..4c3c7050e7ffa347742cfb7fa055ab62d5ef9b6f 100644 (file)
@@ -7130,6 +7130,21 @@ _e_client_base_output_resolution_set(E_Client *ec, int width, int height)
    e_client_transform_core_add(ec, ec->base_output_resolution.transform);
 }
 
+E_API void
+e_client_base_output_resolution_transform_adjust(E_Client *ec)
+{
+   EINA_SAFETY_ON_NULL_RETURN(ec);
+   if (!ec->base_output_resolution.use) return;
+
+   ELOGF("POL_APPINFO", "Apply TRANSFORM... desk:(%dx%d), ec:(%dx%d)",
+         ec, ec->desk->geom.w, ec->desk->geom.h, ec->w, ec->h);
+   e_util_transform_scale(ec->base_output_resolution.transform,
+                          (double)ec->desk->geom.w /(double)ec->w,
+                          (double)ec->desk->geom.h /(double)ec->h,
+                          1.0);
+   e_client_transform_core_update(ec);
+}
+
 E_API Eina_Bool
 e_client_base_output_resolution_update(E_Client *ec)
 {
index e57a033437b9a916b87804923d0a11675f2a3817..24d9c675ae91547f24020b231e91b8bc4bedf90b 100644 (file)
@@ -1163,6 +1163,7 @@ E_API void e_client_stay_within_canvas_margin(E_Client *ec);
 
 E_API E_Capture_Save_State e_client_image_save(E_Client *ec, const char *dir, const char *name, E_Capture_Client_Save_End_Cb func_end, void *data, Eina_Bool skip_child);
 
+E_API void      e_client_base_output_resolution_transform_adjust(E_Client *ec);
 E_API Eina_Bool e_client_base_output_resolution_update(E_Client *ec);
 
 EINTERN void e_client_revert_focus(E_Client *ec);
index 7471df7106545b6143deb2a204e66f9269235983..1b412247a2e5fd31a019234dc513f08675c8ceb6 100644 (file)
@@ -7128,17 +7128,7 @@ _e_policy_wl_cb_hook_shell_surface_ready(void *d, E_Client *ec)
 
    e_policy_client_maximize(ec);
 
-   // base_output_resolution
-   if (ec->base_output_resolution.use)
-     {
-        ELOGF("POL_APPINFO", "Apply TRANSFORM... desk:(%dx%d), ec:(%dx%d)",
-              ec, ec->desk->geom.w, ec->desk->geom.h, ec->w, ec->h);
-        e_util_transform_scale(ec->base_output_resolution.transform,
-                               (double)ec->desk->geom.w /(double)ec->w,
-                               (double)ec->desk->geom.h /(double)ec->h,
-                               1.0);
-        e_client_transform_core_update(ec);
-     }
+   e_client_base_output_resolution_transform_adjust(ec);
 
    if ((ec->comp_data->shell.configure_send) &&
        (ec->comp_data->shell.surface))