From 369f414726f8135194ebf778bc701ffbf6f8ce7d Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 10 Sep 2013 14:32:57 +0100 Subject: [PATCH] Remove calls to update_size function in alpha_set and transparent_set. In alpha_set & transparent_set, add call to set opaque region to NULL if alpha or transparent. Signed-off-by: Chris Michael --- src/lib/ecore_wayland/ecore_wl_window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index d31c12da75..ea59ec4e2a 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -412,7 +412,8 @@ ecore_wl_window_transparent_set(Ecore_Wl_Window *win, Eina_Bool transparent) if (!win) return; win->transparent = transparent; - ecore_wl_window_update_size(win, win->allocation.w, win->allocation.h); + if (win->transparent) + ecore_wl_window_opaque_region_set(win, 0, 0, 0, 0); } EAPI Eina_Bool @@ -432,7 +433,8 @@ ecore_wl_window_alpha_set(Ecore_Wl_Window *win, Eina_Bool alpha) if (!win) return; win->alpha = alpha; - ecore_wl_window_update_size(win, win->allocation.w, win->allocation.h); + if (win->alpha) + ecore_wl_window_opaque_region_set(win, 0, 0, 0, 0); } EAPI Eina_Bool