discomfitor pushed a commit to branch enlightenment-0.21.

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

commit f4243e1f5d98150804dd54db44f9cbafc017f064
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Sun Jan 15 14:16:31 2017 +0900

    e - wl mode - stop consuming 100 percent cpu
    
    so on 1 intel laptop and my rpi i'm seeing 100% cpu usage in wayland
    mode. it seems something is resizing to 0x0 and then causing a size
    change which causes a property change which causes... another request
    to 0x0 and repeat. dont set tyhe size changed flags if size actually
    didnt change and this fixes that.
---
 src/bin/e_comp_object.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index deddc9f..959639f 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -1198,9 +1198,12 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, 
int w, int h)
         /* do nothing until client idler loops */
         if (!cw->ec->maximized)
           {
-             cw->ec->w = w, cw->ec->h = h;
-             cw->ec->changes.size = 1;
-             EC_CHANGED(cw->ec);
+             if ((cw->ec->w != w) || (cw->ec->h != h))
+               {
+                  cw->ec->w = w, cw->ec->h = h;
+                  cw->ec->changes.size = 1;
+                  EC_CHANGED(cw->ec);
+               }
           }
         return;
      }

-- 


Reply via email to