e_policy_wl: resize the splash window to screen size if its size is under 1 66/304566/1 accepted/tizen/7.0/unified/20240120.042525
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 19 Jan 2024 10:25:35 +0000 (19:25 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Fri, 19 Jan 2024 10:25:35 +0000 (19:25 +0900)
Change-Id: Ic1493311817e733ef0a3251df390fd14a92bdcc5

src/bin/e_policy_wl.c

index 38ad71d6cbc7143d0d6c60749b1e6f8c1f9d9c23..ee525cbe8590b73dce9d50a93d4c5fee36e971b1 100644 (file)
@@ -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);