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.
This commit is contained in:
Carsten Haitzler 2017-01-15 14:16:31 +09:00 committed by Mike Blumenkrantz
parent 7608cebd85
commit f4243e1f5d
1 changed files with 6 additions and 3 deletions

View File

@ -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;
}