From 6e882d2e4f44c5ab77d1cf461a6733740856ede4 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 23 Jul 2017 00:19:51 +0900 Subject: [PATCH] e comp - stop trying to set size again and again to the same i found e spinning at 100% just with 1 windows in wayland... open 2 terminology wins and move mouse form one to the other... 100% cpu. e was moving seemingly a cursor client window? to the same coord again and again as it was hidden... this fixes that. no more spinning cpu --- 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 cca0d8302..7b5e27f4d 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -1212,9 +1212,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 ((w != cw->ec->w) || (h != cw->ec->h)) + { + cw->ec->w = w, cw->ec->h = h; + cw->ec->changes.size = 1; + EC_CHANGED(cw->ec); + } } return; }