e_policy_wl: change a layout geometry considering the shadow size 82/291182/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Tue, 11 Apr 2023 06:56:54 +0000 (15:56 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Tue, 11 Apr 2023 07:34:51 +0000 (07:34 +0000)
Change-Id: Id50ebd0086c36b381d7dfcbf8a7cd018cc38dda2

src/bin/e_policy_wl.c

index 430605508eda4dcaf04135a6e4ea04ba08893f56..b18618b3373a86c68781ef57837a8c66e601bd9c 100644 (file)
@@ -3575,10 +3575,20 @@ _tzpol_iface_cb_set_layout(struct wl_client *client EINA_UNUSED, struct wl_resou
    w = unit_w * col_span;
    h = unit_h * row_span;
 
-   // TODO: We may need to adjust the last size if the unit size is not deviced exactly
+   // TODO: We may need to adjust the last size if the unit size is not devided exactly
 
    ELOGF("TZPOL", "TIZEN_POLICY_SET_LAYOUT... layout(%d,%d) request(%d,%d,%d,%d) -> unit(%d,%d), geo(%d,%d,%dx%d)",
          ec, num_cols, num_rows, column, row, col_span, row_span, unit_w, unit_h, x, y, w, h);
+
+   if (ec->manage_resize.shadow)
+     {
+        x -= ec->manage_resize.shadow;
+        y -= ec->manage_resize.shadow;
+        w = w + (ec->manage_resize.shadow * 2);
+        h = h + (ec->manage_resize.shadow * 2);
+        ELOGF("TZPOL", "Shadow is enabled.. Consider Shadow size(%d). new (%d,%d,%dx%d)", ec, ec->manage_resize.shadow, x, y, w, h);
+     }
+
    e_client_frame_geometry_set(ec, x, y, w, h);
 }