devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=65b397a84f39df75c20a65dabf7420847ca0de70

commit 65b397a84f39df75c20a65dabf7420847ca0de70
Author: Chris Michael <[email protected]>
Date:   Fri Oct 17 04:44:40 2014 -0400

    add evas callback for color_set
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index fd6a4e9..42b2f41 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -473,6 +473,20 @@ _e_comp_wl_evas_cb_ping(void *data, Evas_Object *obj 
EINA_UNUSED, void *event EI
 }
 
 static void 
+_e_comp_wl_evas_cb_color_set(void *data, Evas_Object *obj, void *event 
EINA_UNUSED)
+{
+   E_Client *ec;
+   int a = 0;
+
+   if (!(ec = data)) return;
+   evas_object_color_get(obj, NULL, NULL, NULL, &a);
+   if (ec->netwm.opacity == a) return;
+   ec->netwm.opacity = a;
+   ec->netwm.opacity_changed = EINA_TRUE;
+   // _e_comp_wl_client_idler_add(ec);
+}
+
+static void 
 _e_comp_wl_client_evas_init(E_Client *ec)
 {
    evas_object_event_callback_add(ec->frame, EVAS_CALLBACK_SHOW, 
@@ -508,6 +522,9 @@ _e_comp_wl_client_evas_init(E_Client *ec)
    evas_object_smart_callback_add(ec->frame, "ping", 
                                   _e_comp_wl_evas_cb_ping, ec);
 
+   evas_object_smart_callback_add(ec->frame, "color_set", 
+                                  _e_comp_wl_evas_cb_color_set, ec);
+
    ec->comp_data->evas_init = EINA_TRUE;
 }
 

-- 


Reply via email to