don't defer resizes+queue render updates for shapeless or pending shaped clients

this basically guarantees a misrender
This commit is contained in:
Mike Blumenkrantz 2016-04-21 18:01:42 -04:00
parent a97a50b306
commit c212bb4e21
1 changed files with 4 additions and 0 deletions

View File

@ -1167,6 +1167,10 @@ _e_comp_intercept_resize(void *data, Evas_Object *obj, int w, int h)
{
if (e_comp->comp_type != E_PIXMAP_TYPE_X) return;
if (e_object_is_del(E_OBJECT(cw->ec))) return;
/* shapeless clients smh */
if (cw->ec->shaped && (!cw->ec->shape_rects)) return;
/* pending shape change gtfo */
if (cw->ec->changes.shape) return;
/* client can't be resized if its pixmap isn't usable, try again */
e_pixmap_dirty(cw->ec->pixmap);
e_comp_object_render_update_add(obj);