summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-09-10 14:32:57 +0100
committerChris Michael <cp.michael@samsung.com>2013-09-10 14:37:17 +0100
commit369f414726f8135194ebf778bc701ffbf6f8ce7d (patch)
treee0c0fde32e3f6c2943c0d2ddcd9e21812cd6547c
parent6d3c50c3b69b99578639a37ee209430fc414eb9f (diff)
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>
-rw-r--r--src/lib/ecore_wayland/ecore_wl_window.c6
1 files 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)
412 412
413 if (!win) return; 413 if (!win) return;
414 win->transparent = transparent; 414 win->transparent = transparent;
415 ecore_wl_window_update_size(win, win->allocation.w, win->allocation.h); 415 if (win->transparent)
416 ecore_wl_window_opaque_region_set(win, 0, 0, 0, 0);
416} 417}
417 418
418EAPI Eina_Bool 419EAPI Eina_Bool
@@ -432,7 +433,8 @@ ecore_wl_window_alpha_set(Ecore_Wl_Window *win, Eina_Bool alpha)
432 433
433 if (!win) return; 434 if (!win) return;
434 win->alpha = alpha; 435 win->alpha = alpha;
435 ecore_wl_window_update_size(win, win->allocation.w, win->allocation.h); 436 if (win->alpha)
437 ecore_wl_window_opaque_region_set(win, 0, 0, 0, 0);
436} 438}
437 439
438EAPI Eina_Bool 440EAPI Eina_Bool