{
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;
*
* 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;
}
*
* 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;