summaryrefslogtreecommitdiff
path: root/src/lib/ecore_x
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-07-10 13:57:35 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-07-10 13:57:35 -0400
commit2138010127903134bdf1d8149e99d8250d8eebba (patch)
treeece83c682909e8bb8abd8c1ffe01e759998b1334 /src/lib/ecore_x
parentac26c0a69d0b4fc4b8e3517e23fe6b5c3b77a555 (diff)
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
Diffstat (limited to 'src/lib/ecore_x')
-rw-r--r--src/lib/ecore_x/ecore_x_fixes.c3
-rw-r--r--src/lib/ecore_x/ecore_x_present.c9
2 files changed, 4 insertions, 8 deletions
diff --git a/src/lib/ecore_x/ecore_x_fixes.c b/src/lib/ecore_x/ecore_x_fixes.c
index f656ede..dd81b67 100644
--- a/src/lib/ecore_x/ecore_x_fixes.c
+++ b/src/lib/ecore_x/ecore_x_fixes.c
@@ -28,8 +28,7 @@ _ecore_x_fixes_init(void)
28 { 28 {
29 _fixes_available = 1; 29 _fixes_available = 1;
30 30
31 if (ECORE_X_EVENT_FIXES_SELECTION_NOTIFY == 0) 31 ECORE_X_EVENT_FIXES_SELECTION_NOTIFY = ecore_event_type_new();
32 ECORE_X_EVENT_FIXES_SELECTION_NOTIFY = ecore_event_type_new();
33 } 32 }
34 else 33 else
35 _fixes_available = 0; 34 _fixes_available = 0;
diff --git a/src/lib/ecore_x/ecore_x_present.c b/src/lib/ecore_x/ecore_x_present.c
index a944f7b..eb190b7 100644
--- a/src/lib/ecore_x/ecore_x_present.c
+++ b/src/lib/ecore_x/ecore_x_present.c
@@ -13,12 +13,9 @@ static Eina_Bool _ecore_x_present_exists = EINA_FALSE;
13void 13void
14_ecore_x_present_init(void) 14_ecore_x_present_init(void)
15{ 15{
16 if (ECORE_X_EVENT_PRESENT_CONFIGURE == 0) 16 ECORE_X_EVENT_PRESENT_CONFIGURE = ecore_event_type_new();
17 { 17 ECORE_X_EVENT_PRESENT_COMPLETE = ecore_event_type_new();
18 ECORE_X_EVENT_PRESENT_CONFIGURE = ecore_event_type_new(); 18 ECORE_X_EVENT_PRESENT_IDLE = ecore_event_type_new();
19 ECORE_X_EVENT_PRESENT_COMPLETE = ecore_event_type_new();
20 ECORE_X_EVENT_PRESENT_IDLE = ecore_event_type_new();
21 }
22#ifdef ECORE_XPRESENT 19#ifdef ECORE_XPRESENT
23 LOGFN(__FILE__, __LINE__, __FUNCTION__); 20 LOGFN(__FILE__, __LINE__, __FUNCTION__);
24 _ecore_x_present_exists = XPresentQueryExtension(_ecore_x_disp, &_ecore_x_present_major, NULL, NULL); 21 _ecore_x_present_exists = XPresentQueryExtension(_ecore_x_disp, &_ecore_x_present_major, NULL, NULL);