e_mod_input_panel: change code to use desk_useful_geometry_get 57/299757/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 10 Oct 2023 02:04:17 +0000 (11:04 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 10 Oct 2023 02:06:55 +0000 (11:06 +0900)
We changed code to use e_client_base_output_resolution_desk_useful_geometry_get instead of
e_client_base_output_resolution_useful_geometry_get.

The e_client_base_output_resolution_desk_useful_geometry_get() function is useful to get
the geometry which is considered obstacle areas (such as taskbar).

Change-Id: I4b4701704834d36607aeca7339a30f6f10f7e9e2

src/e_mod_input_panel.c

index 0ec5ba6..c43ae4d 100644 (file)
@@ -389,7 +389,7 @@ _e_input_panel_init_floating_position(E_Client *ec)
 
    if (!ec || !g_floating_info) return;
 
-   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_desk_useful_geometry_get(ec, &zx, &zy, &zw, &zh, EINA_TRUE);
 
    switch (ec->e.state.rot.ang.curr)
      {
@@ -422,7 +422,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;
 
-   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_desk_useful_geometry_get(ec, &zx, &zy, &zw, &zh, EINA_TRUE);
 
    switch (ec->e.state.rot.ang.curr)
      {
@@ -475,7 +475,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_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_desk_useful_geometry_get(ec, &zx, &zy, &zw, &zh, EINA_TRUE);
 
    switch (cur_angle)
      {
@@ -532,7 +532,7 @@ _e_input_panel_position_set(E_Client *ec, int w, int h)
 
    if (!ec || !g_floating_info) return;
 
-   e_client_base_output_resolution_useful_geometry_get(ec, &zx, &zy, &zw, &zh);
+   e_client_base_output_resolution_desk_useful_geometry_get(ec, &zx, &zy, &zw, &zh, EINA_TRUE);
 
    /* Get the position of center bottom each angles */
    switch (ec->e.state.rot.ang.curr)
@@ -1227,7 +1227,7 @@ e_input_panel_client_geometry_get(E_Client *ec, int *x, int *y, int *w, int *h)
                 ips->ec->e.state.rot.ang.curr :
                 ips->ec->e.state.rot.ang.next;
 
-             e_client_base_output_resolution_useful_geometry_get(ips->ec, &zx, &zy, &zw, &zh);
+             e_client_base_output_resolution_desk_useful_geometry_get(ips->ec, &zx, &zy, &zw, &zh, EINA_TRUE);
              switch (angle)
                {
                 case 90: