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
0c56e19a64
commit
cd3490f35c
|
@ -1199,11 +1199,14 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h)
|
||||||
{
|
{
|
||||||
/* do nothing until client idler loops */
|
/* do nothing until client idler loops */
|
||||||
if (!cw->ec->maximized)
|
if (!cw->ec->maximized)
|
||||||
|
{
|
||||||
|
if ((cw->ec->w != w) || (cw->ec->h != h))
|
||||||
{
|
{
|
||||||
cw->ec->w = w, cw->ec->h = h;
|
cw->ec->w = w, cw->ec->h = h;
|
||||||
cw->ec->changes.size = 1;
|
cw->ec->changes.size = 1;
|
||||||
EC_CHANGED(cw->ec);
|
EC_CHANGED(cw->ec);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ((!cw->ec->internal) && e_client_util_resizing_get(cw->ec) && cw->ec->netwm.sync.request &&
|
if ((!cw->ec->internal) && e_client_util_resizing_get(cw->ec) && cw->ec->netwm.sync.request &&
|
||||||
|
|
Loading…
Reference in New Issue