discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=858504c69f220238356b46c1ce192fa3164bf1e3

commit 858504c69f220238356b46c1ce192fa3164bf1e3
Author: Mike Blumenkrantz <[email protected]>
Date:   Wed Jul 30 14:23:17 2014 -0400

    add comp events for nocomp toggle
---
 src/bin/e_comp.c | 6 ++++++
 src/bin/e_comp.h | 2 ++
 2 files changed, 8 insertions(+)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index cd31a42..63c1aa1 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -37,6 +37,8 @@ static double ecore_frametime = 0;
 static int _e_comp_log_dom = -1;
 
 EAPI int E_EVENT_COMPOSITOR_RESIZE = -1;
+EAPI int E_EVENT_COMPOSITOR_DISABLE = -1;
+EAPI int E_EVENT_COMPOSITOR_ENABLE = -1;
 
 //////////////////////////////////////////////////////////////////////////
 #undef DBG
@@ -248,6 +250,7 @@ _e_comp_cb_nocomp_begin(E_Comp *c)
    DBG("JOB2...");
    e_comp_render_queue(c);
    e_comp_shape_queue_block(c, 1);
+   ecore_event_add(E_EVENT_COMPOSITOR_DISABLE, NULL, NULL, NULL);
 }
 
 static void
@@ -267,6 +270,7 @@ _e_comp_cb_nocomp_end(E_Comp *c)
      }
    e_comp_render_queue(c);
    e_comp_shape_queue_block(c, 0);
+   ecore_event_add(E_EVENT_COMPOSITOR_ENABLE, NULL, NULL, NULL);
 }
 
 static Eina_Bool
@@ -963,6 +967,8 @@ e_comp_init(void)
 
    E_EVENT_COMPOSITOR_RESIZE = ecore_event_type_new();
    E_EVENT_COMP_OBJECT_ADD = ecore_event_type_new();
+   E_EVENT_COMPOSITOR_DISABLE = ecore_event_type_new();
+   E_EVENT_COMPOSITOR_ENABLE = ecore_event_type_new();
 
    ignores = eina_hash_pointer_new(NULL);
 
diff --git a/src/bin/e_comp.h b/src/bin/e_comp.h
index d01e441..48048fa 100644
--- a/src/bin/e_comp.h
+++ b/src/bin/e_comp.h
@@ -38,6 +38,8 @@ typedef enum _E_Layer
 
 # include "e_comp_cfdata.h"
 
+extern EAPI int E_EVENT_COMPOSITOR_DISABLE;
+extern EAPI int E_EVENT_COMPOSITOR_ENABLE;
 
 struct _E_Comp
 {

-- 


Reply via email to