e_policy_wl: resize the splash window to screen size if its size is under 1 02/304602/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 19 Jan 2024 10:25:35 +0000 (19:25 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 22 Jan 2024 04:41:17 +0000 (04:41 +0000)
Change-Id: Ic1493311817e733ef0a3251df390fd14a92bdcc5

src/bin/e_policy_wl.c

index 4ce7ba5..ca84262 100644 (file)
@@ -7010,6 +7010,7 @@ _tzlaunch_splash_iface_cb_owner(struct wl_client *client EINA_UNUSED, struct wl_
    E_Policy_Wl_Tzlaunch_Splash *tzlaunch_splash;
    E_Client *pre_ec = NULL, *new_ec = NULL, *old_ec;
    Eina_List *clients, *l;
+   int tw, th;
 
    tzlaunch_splash = wl_resource_get_user_data(res_tzlaunch_splash);
    EINA_SAFETY_ON_NULL_RETURN(tzlaunch_splash);
@@ -7023,6 +7024,9 @@ _tzlaunch_splash_iface_cb_owner(struct wl_client *client EINA_UNUSED, struct wl_
         if (!pre_ec->ignored) continue;
         if (pre_ec->is_cursor) continue;
         new_ec = pre_ec;
+        e_client_geometry_get(new_ec, NULL, NULL, &tw, &th);
+        if (tw <= 1 || th <= 1)
+          evas_object_resize(new_ec->frame, e_comp->w, e_comp->h);
         break;
      }
    eina_list_free(clients);