From 7749fddaa0ebc9ff2065d9ff09bea24f6681a36b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 20 May 2013 12:18:21 +0100 Subject: [PATCH] set comp mirror image size before setting image data -> no more black/garbage mirrors --- src/bin/e_comp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c index 58e6cdd9e..d5f2e308e 100644 --- a/src/bin/e_comp.c +++ b/src/bin/e_comp.c @@ -1967,6 +1967,7 @@ _e_comp_win_mirror_add(E_Comp_Win *cw) w = cw->pw, h = cw->ph; evas_object_image_alpha_set(o, alpha); + evas_object_image_size_set(o, w, h); if (cw->shaped) 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_object_image_size_set(o, w, h); ns.version = EVAS_NATIVE_SURFACE_VERSION; ns.type = EVAS_NATIVE_SURFACE_X11; 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); if (!argb) evas_object_image_data_set(cw->obj, pix); - evas_object_image_size_set(o, w, h); } } else if (cw->real_obj)