e_policy_wl: resize the splash window to screen size if its size is under 1 81/304581/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Fri, 19 Jan 2024 10:25:35 +0000 (19:25 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Sat, 20 Jan 2024 02:06:03 +0000 (11:06 +0900)
Change-Id: Ic1493311817e733ef0a3251df390fd14a92bdcc5

src/bin/e_policy_wl.c

index f2025341f1aaa1941ba234fc8c23b48abcd13ee6..b3361eb468b82d42b2beb156aaae934c56c7a43d 100644 (file)
@@ -7016,6 +7016,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);
@@ -7029,6 +7030,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);