From: Doyoun Kang Date: Fri, 19 Jan 2024 10:25:35 +0000 (+0900) Subject: e_policy_wl: resize the splash window to screen size if its size is under 1 X-Git-Tag: accepted/tizen/7.0/unified/20240120.042525^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3cfea1c6ada19f8f7fa058d507faa848a9a299f8;p=platform%2Fupstream%2Fenlightenment.git e_policy_wl: resize the splash window to screen size if its size is under 1 Change-Id: Ic1493311817e733ef0a3251df390fd14a92bdcc5 --- diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index 38ad71d6cb..ee525cbe85 100644 --- a/src/bin/e_policy_wl.c +++ b/src/bin/e_policy_wl.c @@ -6699,6 +6699,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); @@ -6712,6 +6713,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);