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:
parent
7608cebd85
commit
f4243e1f5d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue