e_client: consider zone's position while calculating visibility 80/272580/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 21 Mar 2022 03:01:19 +0000 (12:01 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 21 Mar 2022 03:01:22 +0000 (12:01 +0900)
To calculate visibility, we make a tiler to calculate region first.
But there was a bug that the visibility was wrong in multi zone environment because we didn't
consider the zone's position when we made a tiler.

This patch resolves this problem.

Change-Id: I068428547eea43c43eaa21024f35e2e52ba0d505

src/bin/e_client.c

index 9c48c58cb87f9f1952a462ff9f9a7869de2c3a21..87ac42d0f0587049b618fe8296dbafb85cba37c5 100644 (file)
@@ -3462,7 +3462,7 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
 
    TRACE_DS_BEGIN(CLIENT:VISIBILITY CALCULATE);
 
-   t = eina_tiler_new(zone->w + edge, zone->h + edge);
+   t = eina_tiler_new(zone->w + zone->x + edge, zone->h + zone->y + edge);
    eina_tiler_tile_size_set(t, 1, 1);
 
    if (zone->display_state != E_ZONE_DISPLAY_STATE_OFF)