forked from enlightenment/enlightenment
e comp - stop trying to set size again and again to the same
i found e spinning at 100% just with 1 windows in wayland... open 2 terminology wins and move mouse form one to the other... 100% cpu. e was moving seemingly a cursor client window? to the same coord again and again as it was hidden... this fixes that. no more spinning cpu
This commit is contained in:
parent
70d08a770e
commit
6e882d2e4f
|
@ -1211,11 +1211,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 ((w != cw->ec->w) || (h != cw->ec->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