From 66d5f6747d3598d559f298e0c7410ddfcae8dc98 Mon Sep 17 00:00:00 2001 From: Doyoun Kang Date: Tue, 11 Apr 2023 15:56:54 +0900 Subject: [PATCH] e_policy_wl: change a layout geometry considering the shadow size Change-Id: Id50ebd0086c36b381d7dfcbf8a7cd018cc38dda2 --- src/bin/e_policy_wl.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/bin/e_policy_wl.c b/src/bin/e_policy_wl.c index 207e3c6..46155d4 100644 --- a/src/bin/e_policy_wl.c +++ b/src/bin/e_policy_wl.c @@ -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); } -- 2.7.4