events: don't check for zeroed event types before registering them
Summary: this handles the case of reinitializing a component, but it's totally broken in the case of doing a full ecore restart Depends on D9253 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9254
This commit is contained in:
parent
ac26c0a69d
commit
2138010127
|
@ -28,8 +28,7 @@ _ecore_x_fixes_init(void)
|
||||||
{
|
{
|
||||||
_fixes_available = 1;
|
_fixes_available = 1;
|
||||||
|
|
||||||
if (ECORE_X_EVENT_FIXES_SELECTION_NOTIFY == 0)
|
ECORE_X_EVENT_FIXES_SELECTION_NOTIFY = ecore_event_type_new();
|
||||||
ECORE_X_EVENT_FIXES_SELECTION_NOTIFY = ecore_event_type_new();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
_fixes_available = 0;
|
_fixes_available = 0;
|
||||||
|
|
|
@ -13,12 +13,9 @@ static Eina_Bool _ecore_x_present_exists = EINA_FALSE;
|
||||||
void
|
void
|
||||||
_ecore_x_present_init(void)
|
_ecore_x_present_init(void)
|
||||||
{
|
{
|
||||||
if (ECORE_X_EVENT_PRESENT_CONFIGURE == 0)
|
ECORE_X_EVENT_PRESENT_CONFIGURE = ecore_event_type_new();
|
||||||
{
|
ECORE_X_EVENT_PRESENT_COMPLETE = ecore_event_type_new();
|
||||||
ECORE_X_EVENT_PRESENT_CONFIGURE = ecore_event_type_new();
|
ECORE_X_EVENT_PRESENT_IDLE = ecore_event_type_new();
|
||||||
ECORE_X_EVENT_PRESENT_COMPLETE = ecore_event_type_new();
|
|
||||||
ECORE_X_EVENT_PRESENT_IDLE = ecore_event_type_new();
|
|
||||||
}
|
|
||||||
#ifdef ECORE_XPRESENT
|
#ifdef ECORE_XPRESENT
|
||||||
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
LOGFN(__FILE__, __LINE__, __FUNCTION__);
|
||||||
_ecore_x_present_exists = XPresentQueryExtension(_ecore_x_disp, &_ecore_x_present_major, NULL, NULL);
|
_ecore_x_present_exists = XPresentQueryExtension(_ecore_x_disp, &_ecore_x_present_major, NULL, NULL);
|
||||||
|
|
|
@ -209,11 +209,8 @@ _elm_sys_notify_singleton_get(void)
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_elm_sys_notify_class_constructor(Efl_Class *klass EINA_UNUSED)
|
_elm_sys_notify_class_constructor(Efl_Class *klass EINA_UNUSED)
|
||||||
{
|
{
|
||||||
if (ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED == 0)
|
ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED = ecore_event_type_new();
|
||||||
{
|
ELM_EVENT_SYS_NOTIFY_ACTION_INVOKED = ecore_event_type_new();
|
||||||
ELM_EVENT_SYS_NOTIFY_NOTIFICATION_CLOSED = ecore_event_type_new();
|
|
||||||
ELM_EVENT_SYS_NOTIFY_ACTION_INVOKED = ecore_event_type_new();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*============================================================================*
|
/*============================================================================*
|
||||||
|
|
Loading…
Reference in New Issue