From b335c0c2aa56a58f15a0bead9ae52b936722a847 Mon Sep 17 00:00:00 2001 From: devilhorns Date: Sat, 24 Sep 2011 09:21:17 +0000 Subject: [PATCH] Ecore_X(cb): Disable filtering of MotionNotify events. Could cause problems with prediction. Thanks mate ;) git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@63587 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_x/xcb/ecore_xcb.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/lib/ecore_x/xcb/ecore_xcb.c b/src/lib/ecore_x/xcb/ecore_xcb.c index aa47fc4..baad4f5 100644 --- a/src/lib/ecore_x/xcb/ecore_xcb.c +++ b/src/lib/ecore_x/xcb/ecore_xcb.c @@ -1393,7 +1393,7 @@ _ecore_xcb_fd_handle(void *data, Ecore_Fd_Handler *hdlr __UNUSED__) { xcb_connection_t *conn; xcb_generic_event_t *ev = NULL; - xcb_generic_event_t *ev_mouse = NULL; +// xcb_generic_event_t *ev_mouse = NULL; conn = (xcb_connection_t *)data; @@ -1427,25 +1427,25 @@ _ecore_xcb_fd_handle(void *data, Ecore_Fd_Handler *hdlr __UNUSED__) * * NB: I've tested this extensively and have found no ill effects, * but if someone notices something, please report it */ - if ((ev->response_type & ~0x80) == XCB_MOTION_NOTIFY) - { - if (ev_mouse) free(ev_mouse); - ev_mouse = ev; - } - else - { + /* if ((ev->response_type & ~0x80) == XCB_MOTION_NOTIFY) */ + /* { */ + /* if (ev_mouse) free(ev_mouse); */ + /* ev_mouse = ev; */ + /* } */ + /* else */ + /* { */ /* FIXME: Filter event for XIM */ _ecore_xcb_events_handle(ev); free(ev); - } + /* } */ } } - if (ev_mouse) - { - _ecore_xcb_events_handle(ev_mouse); - free(ev_mouse); - } + /* if (ev_mouse) */ + /* { */ + /* _ecore_xcb_events_handle(ev_mouse); */ + /* free(ev_mouse); */ + /* } */ return ECORE_CALLBACK_RENEW; } @@ -1475,12 +1475,12 @@ _ecore_xcb_fd_handle_buff(void *data, Ecore_Fd_Handler *hdlr __UNUSED__) * * NB: I've tested this extensively and have found no ill effects, * but if someone notices something, please report it */ - else if ((ev->response_type & ~0x80) == XCB_MOTION_NOTIFY) - { - free(ev); - return ECORE_CALLBACK_CANCEL; - } - else + /* else if ((ev->response_type & ~0x80) == XCB_MOTION_NOTIFY) */ + /* { */ + /* free(ev); */ + /* return ECORE_CALLBACK_CANCEL; */ + /* } */ + /* else */ { _ecore_xcb_event_buffered = ev; return ECORE_CALLBACK_RENEW; -- 2.7.4