doing transform when surface is ready 86/205686/5
authorJunseok, Kim <juns.kim@samsung.com>
Wed, 8 May 2019 11:12:11 +0000 (20:12 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Mon, 13 May 2019 07:46:53 +0000 (16:46 +0900)
Change-Id: I9cd00ddf6525f47e048fb971c5ba6eb62c2ad86e

src/e_mod_input_panel.c

index 72aae2f..ca92416 100644 (file)
@@ -245,6 +245,9 @@ _e_input_panel_surface_cb_ready_set(struct wl_client *client EINA_UNUSED, struct
 
    LOGD("IPS::SHOW::READY\n");
 
+   // base_output_resolution
+   e_client_base_output_resolution_transform_adjust(ips->ec);
+
    _e_input_panel_surface_show(ips);
 }
 
@@ -376,7 +379,7 @@ _e_input_panel_init_floating_position(E_Client *ec)
 
    if (!ec || !g_floating_info) return;
 
-   e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
 
    switch (ec->e.state.rot.ang.curr)
      {
@@ -410,7 +413,7 @@ _e_input_panel_stay_within_screen(E_Client *ec, int x, int y, int *new_x, int *n
    if (!ec || !g_floating_info) return;
    if (!_e_input_panel_allow_position_set(ec, NULL, __FUNCTION__)) return;
 
-   e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
 
    switch (ec->e.state.rot.ang.curr)
      {
@@ -464,7 +467,7 @@ _e_input_panel_convert_floating_position(E_Client *ec, int x, int y, int *new_x,
     (!g_floating_info->init_landscape_position && (cur_angle == 90 || cur_angle == 270)))
      _e_input_panel_init_floating_position(ec);
 
-   e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
 
    switch (cur_angle)
      {
@@ -527,7 +530,7 @@ _e_input_panel_position_set(E_Client *ec, int w, int h)
    if (!_e_input_panel_allow_position_set(ec, focused_ec, __FUNCTION__))
       return;
 
-   e_zone_useful_geometry_get(ec->zone, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
 
    /* Get the position of center bottom each angles */
    switch (ec->e.state.rot.ang.curr)
@@ -954,6 +957,9 @@ _e_input_panel_cb_surface_get(struct wl_client *client, struct wl_resource *reso
    ips->eh.rot_change_end =
       ecore_event_handler_add(E_EVENT_CLIENT_ROTATION_CHANGE_END,
                               _e_input_panel_client_cb_rotation_change_end, ips);
+
+   // base_output_resolution.
+   e_client_base_output_resolution_update(ec);
 }