forked from enlightenment/enlightenment
add comp events for nocomp toggle
This commit is contained in:
parent
3c5cc9c0a0
commit
858504c69f
|
@ -37,6 +37,8 @@ static double ecore_frametime = 0;
|
||||||
static int _e_comp_log_dom = -1;
|
static int _e_comp_log_dom = -1;
|
||||||
|
|
||||||
EAPI int E_EVENT_COMPOSITOR_RESIZE = -1;
|
EAPI int E_EVENT_COMPOSITOR_RESIZE = -1;
|
||||||
|
EAPI int E_EVENT_COMPOSITOR_DISABLE = -1;
|
||||||
|
EAPI int E_EVENT_COMPOSITOR_ENABLE = -1;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
#undef DBG
|
#undef DBG
|
||||||
|
@ -248,6 +250,7 @@ _e_comp_cb_nocomp_begin(E_Comp *c)
|
||||||
DBG("JOB2...");
|
DBG("JOB2...");
|
||||||
e_comp_render_queue(c);
|
e_comp_render_queue(c);
|
||||||
e_comp_shape_queue_block(c, 1);
|
e_comp_shape_queue_block(c, 1);
|
||||||
|
ecore_event_add(E_EVENT_COMPOSITOR_DISABLE, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -267,6 +270,7 @@ _e_comp_cb_nocomp_end(E_Comp *c)
|
||||||
}
|
}
|
||||||
e_comp_render_queue(c);
|
e_comp_render_queue(c);
|
||||||
e_comp_shape_queue_block(c, 0);
|
e_comp_shape_queue_block(c, 0);
|
||||||
|
ecore_event_add(E_EVENT_COMPOSITOR_ENABLE, NULL, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
|
@ -963,6 +967,8 @@ e_comp_init(void)
|
||||||
|
|
||||||
E_EVENT_COMPOSITOR_RESIZE = ecore_event_type_new();
|
E_EVENT_COMPOSITOR_RESIZE = ecore_event_type_new();
|
||||||
E_EVENT_COMP_OBJECT_ADD = 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);
|
ignores = eina_hash_pointer_new(NULL);
|
||||||
|
|
||||||
|
|
|
@ -38,6 +38,8 @@ typedef enum _E_Layer
|
||||||
|
|
||||||
# include "e_comp_cfdata.h"
|
# include "e_comp_cfdata.h"
|
||||||
|
|
||||||
|
extern EAPI int E_EVENT_COMPOSITOR_DISABLE;
|
||||||
|
extern EAPI int E_EVENT_COMPOSITOR_ENABLE;
|
||||||
|
|
||||||
struct _E_Comp
|
struct _E_Comp
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue