summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-15 14:16:31 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-01-15 14:16:31 +0900
commitcd3490f35c5dd1efc9719895845cc01194de1ccd (patch)
treed1aa995a09722be44349c2fbc751ce674aab834c
parent0c56e19a64ea46649fb933dc5a368dddaf8bb937 (diff)
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.
-rw-r--r--src/bin/e_comp_object.c9
1 files 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)
1200 /* do nothing until client idler loops */ 1200 /* do nothing until client idler loops */
1201 if (!cw->ec->maximized) 1201 if (!cw->ec->maximized)
1202 { 1202 {
1203 cw->ec->w = w, cw->ec->h = h; 1203 if ((cw->ec->w != w) || (cw->ec->h != h))
1204 cw->ec->changes.size = 1; 1204 {
1205 EC_CHANGED(cw->ec); 1205 cw->ec->w = w, cw->ec->h = h;
1206 cw->ec->changes.size = 1;
1207 EC_CHANGED(cw->ec);
1208 }
1206 } 1209 }
1207 return; 1210 return;
1208 } 1211 }