reject successive zone_geometry_dirty() calls

no point in thrashing the compositor if events are already pending
This commit is contained in:
Mike Blumenkrantz 2016-10-21 10:01:50 -04:00
parent 62068912e9
commit 3e186b1509
1 changed files with 3 additions and 0 deletions

View File

@ -1334,6 +1334,9 @@ e_zone_useful_geometry_dirty(E_Zone *zone)
E_OBJECT_CHECK(zone);
E_OBJECT_TYPE_CHECK(zone, E_ZONE_TYPE);
/* ignore if pending event already exists */
if (zone->useful_geometry_dirty) return;
ev = E_NEW(E_Event_Zone_Move_Resize, 1);
ev->zone = zone;
e_object_ref(E_OBJECT(ev->zone));