forked from enlightenment/efl
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 <cp.michael@samsung.com>
This commit is contained in:
parent
6d3c50c3b6
commit
369f414726
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue