e_client: consider edge value while calculating visibility 60/276360/1 accepted/tizen/unified/20220616.141811 submit/tizen/20220615.100802
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 15 Jun 2022 06:01:38 +0000 (15:01 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 15 Jun 2022 06:43:07 +0000 (15:43 +0900)
When the window size is 1x1, then the eina_tiler skips it as rounding.
So, we add an additional edge value to window's geometry to calculate visibility correctly.

Change-Id: I3ee6fa69fc5d84e9cf1e9ed64108597489da0f6a

src/bin/e_client.c

index d768be9f7344a97296e0c8b70da151b596c69285..65f58f220d5b92a02fe9db85cdfd59762fb86bff 100644 (file)
@@ -3547,6 +3547,9 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
           }
 
         e_client_geometry_get(ec, &x, &y, &w, &h);
+        w = w + edge;
+        h = h + edge;
+
         ec_vis = ec_opaque = skip_rot_pending_show = is_vis_on_skip = EINA_FALSE;
         skip_by_pending_show = 0;
         calc_region = EINA_TRUE;
@@ -3663,8 +3666,8 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
                        EINA_RECTANGLE_SET(&r,
                                           x,
                                           y,
-                                          w + edge,
-                                          h + edge);
+                                          w,
+                                          h);
                        eina_tiler_rect_del(t, &r);
 
                        if (eina_tiler_empty(t))