e_client: add code to check window has ever mapped while calculate visibility 33/113533/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 8 Feb 2017 05:40:27 +0000 (14:40 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Wed, 8 Feb 2017 05:40:27 +0000 (14:40 +0900)
Change-Id: Ib4a2810b85b66eee5a6c294d5b567fdd0a073824

src/bin/e_client.c

index 5f18b8f916423e6c5d9e9b0d281ee3b9df746407..999a62e8762d9460bbc0fe2f61715600a843530a 100644 (file)
@@ -2946,6 +2946,7 @@ _e_client_visibility_zone_calculate(E_Zone *zone)
         /* if ec is subsurface, skip this */
         cdata = (E_Comp_Wl_Client_Data *)ec->comp_data;
         if (cdata && cdata->sub.data) continue;
+        if (!ec->first_mapped) continue;
 
         /* TODO: need to check whether window intersects with entire screen, not zone. */
         /* if (!E_INTERSECTS(ec->x, ec->y, ec->w, ec->h, zone->x, zone->y, zone->w, zone->h)) continue; */