devilhorns pushed a commit to branch master.

commit 369f414726f8135194ebf778bc701ffbf6f8ce7d
Author: Chris Michael <[email protected]>
Date:   Tue Sep 10 14:32:57 2013 +0100

    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 <[email protected]>
---
 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 d31c12d..ea59ec4 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

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk

Reply via email to