summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
diff options
context:
space:
mode:
authorRafael Antognolli <antognolli@gmail.com>2011-10-27 18:57:23 +0000
committerRafael Antognolli <antognolli@gmail.com>2011-10-27 18:57:23 +0000
commit44538e442a60694c41b0969649ce1cc64c04beef (patch)
treeb01b2785e27ef0ebc19d56624d7e6abc1af08cbf /legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
parent9785b53f280ed35519d26d9468364dde2cb70b47 (diff)
ecore/ecore_fb: Disable mouse move event filtering.
There are two main reasons for disabling this now: - it's not working, some problem with an assertion of ecore_lock is making the program abort; - it's wrong, mouse move events can only be filtered out if they are received from an absolute axis device (touchscreen and so), not relative ones, like mouse or touchpads. Patch for SiT. SVN revision: 64444
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c b/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
index 3d76f14030..20c3f18e5f 100644
--- a/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
+++ b/legacy/ecore/src/lib/ecore_fb/ecore_fb_vt.c
@@ -131,7 +131,9 @@ _ecore_fb_vt_setup(void)
131 _ecore_fb_signal_usr_handler, 131 _ecore_fb_signal_usr_handler,
132 NULL); 132 NULL);
133 /* What does this do? */ 133 /* What does this do? */
134 /*
134 _ecore_fb_filter_handler = ecore_event_filter_add(_ecore_fb_event_filter_start, _ecore_fb_event_filter_filter, _ecore_fb_event_filter_end, NULL); 135 _ecore_fb_filter_handler = ecore_event_filter_add(_ecore_fb_event_filter_start, _ecore_fb_event_filter_filter, _ecore_fb_event_filter_end, NULL);
136 */
135 137
136 usleep(40000); 138 usleep(40000);
137 if (ioctl(_ecore_fb_vt_tty_fd, VT_ACTIVATE, _ecore_fb_vt_current_vt) < 0) 139 if (ioctl(_ecore_fb_vt_tty_fd, VT_ACTIVATE, _ecore_fb_vt_current_vt) < 0)
@@ -269,6 +271,12 @@ ecore_fb_callback_lose_set(void (*func) (void *data), void *data)
269 * @} 271 * @}
270 */ 272 */
271 273
274/*
275 * This filter should take into account that the MOUSE_MOVE event can be
276 * triggered by a mouse, not just a touchscreen device, so you can't discard
277 * them (only those generated by a device that sends events with absolute
278 * coordinates).
279
272typedef struct _Ecore_Fb_Filter_Data Ecore_Fb_Filter_Data; 280typedef struct _Ecore_Fb_Filter_Data Ecore_Fb_Filter_Data;
273 281
274struct _Ecore_Fb_Filter_Data 282struct _Ecore_Fb_Filter_Data
@@ -312,3 +320,4 @@ _ecore_fb_event_filter_end(void *data __UNUSED__, void *loop_data)
312 filter_data = loop_data; 320 filter_data = loop_data;
313 if (filter_data) free(filter_data); 321 if (filter_data) free(filter_data);
314} 322}
323*/