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:
Carsten Haitzler 2017-07-23 00:19:51 +09:00
parent 70d08a770e
commit 6e882d2e4f
1 changed files with 6 additions and 3 deletions

View File

@ -1212,9 +1212,12 @@ _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)
{ {
cw->ec->w = w, cw->ec->h = h; if ((w != cw->ec->w) || (h != cw->ec->h))
cw->ec->changes.size = 1; {
EC_CHANGED(cw->ec); cw->ec->w = w, cw->ec->h = h;
cw->ec->changes.size = 1;
EC_CHANGED(cw->ec);
}
} }
return; return;
} }