forked from enlightenment/enlightenment
set comp mirror image size before setting image data -> no more black/garbage mirrors
This commit is contained in:
parent
d208926bdf
commit
7749fddaa0
|
@ -1967,6 +1967,7 @@ _e_comp_win_mirror_add(E_Comp_Win *cw)
|
||||||
w = cw->pw, h = cw->ph;
|
w = cw->pw, h = cw->ph;
|
||||||
|
|
||||||
evas_object_image_alpha_set(o, alpha);
|
evas_object_image_alpha_set(o, alpha);
|
||||||
|
evas_object_image_size_set(o, w, h);
|
||||||
|
|
||||||
if (cw->shaped)
|
if (cw->shaped)
|
||||||
pix = evas_object_image_data_get(cw->obj, 0);
|
pix = evas_object_image_data_get(cw->obj, 0);
|
||||||
|
@ -1976,7 +1977,6 @@ _e_comp_win_mirror_add(E_Comp_Win *cw)
|
||||||
{
|
{
|
||||||
Evas_Native_Surface ns;
|
Evas_Native_Surface ns;
|
||||||
|
|
||||||
evas_object_image_size_set(o, w, h);
|
|
||||||
ns.version = EVAS_NATIVE_SURFACE_VERSION;
|
ns.version = EVAS_NATIVE_SURFACE_VERSION;
|
||||||
ns.type = EVAS_NATIVE_SURFACE_X11;
|
ns.type = EVAS_NATIVE_SURFACE_X11;
|
||||||
ns.data.x11.visual = cw->vis;
|
ns.data.x11.visual = cw->vis;
|
||||||
|
@ -1997,7 +1997,6 @@ _e_comp_win_mirror_add(E_Comp_Win *cw)
|
||||||
evas_object_image_data_set(o, pix);
|
evas_object_image_data_set(o, pix);
|
||||||
if (!argb)
|
if (!argb)
|
||||||
evas_object_image_data_set(cw->obj, pix);
|
evas_object_image_data_set(cw->obj, pix);
|
||||||
evas_object_image_size_set(o, w, h);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (cw->real_obj)
|
else if (cw->real_obj)
|
||||||
|
|
Loading…
Reference in New Issue