From cd3490f35c5dd1efc9719895845cc01194de1ccd Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 15 Jan 2017 14:16:31 +0900 Subject: [PATCH] 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 89324f850..675b6c15f 100644 --- a/src/bin/e_comp_object.c +++ b/src/bin/e_comp_object.c @@ -1200,9 +1200,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; }