add comp events for nocomp toggle

This commit is contained in:
Mike Blumenkrantz 2014-07-30 14:23:17 -04:00
parent 3c5cc9c0a0
commit 858504c69f
2 changed files with 8 additions and 0 deletions

View File

@ -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);

View File

@ -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
{