devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=795627ab519bf512f1d96ef26a5826186203ca80

commit 795627ab519bf512f1d96ef26a5826186203ca80
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Mon Sep 28 09:19:21 2015 -0400

    ecore-wl2: Add API function to set if a window is alpha or not
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/lib/ecore_wl2/Ecore_Wl2.h        |  3 +++
 src/lib/ecore_wl2/ecore_wl2_window.c | 11 +++++++++++
 2 files changed, 14 insertions(+)

diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 779cdc3..54f0e43 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -375,6 +375,9 @@ EAPI Ecore_Wl2_Window 
*ecore_wl2_window_find(Ecore_Wl2_Display *display, int id)
 /* TODO: doxy */
 EAPI Eina_Bool ecore_wl2_window_alpha_get(Ecore_Wl2_Window *window);
 
+/* TODO: doxy */
+EAPI void ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool 
alpha);
+
 /* # ifdef __cplusplus */
 /* } */
 /* # endif */
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c 
b/src/lib/ecore_wl2/ecore_wl2_window.c
index aaa2279..dba0307 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -501,3 +501,14 @@ ecore_wl2_window_alpha_get(Ecore_Wl2_Window *window)
 
    return window->alpha;
 }
+
+EAPI void
+ecore_wl2_window_alpha_set(Ecore_Wl2_Window *window, Eina_Bool alpha)
+{
+   EINA_SAFETY_ON_NULL_RETURN(window);
+
+   if (win->alpha == alpha) return;
+
+   win->alpha = alpha;
+   /* TODO: set opaque region */
+}

-- 


Reply via email to