discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3e186b150977573c3c9c182b93652ae0358dc983

commit 3e186b150977573c3c9c182b93652ae0358dc983
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Oct 21 10:01:50 2016 -0400

    reject successive zone_geometry_dirty() calls
    
    no point in thrashing the compositor if events are already pending
---
 src/bin/e_zone.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/bin/e_zone.c b/src/bin/e_zone.c
index b3c6660..f76b5a4 100644
--- a/src/bin/e_zone.c
+++ b/src/bin/e_zone.c
@@ -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));

-- 


Reply via email to