summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ecore_fb/ecore_fb_li.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/ecore_fb/ecore_fb_li.c b/src/lib/ecore_fb/ecore_fb_li.c
index f332959966..838576278a 100644
--- a/src/lib/ecore_fb/ecore_fb_li.c
+++ b/src/lib/ecore_fb/ecore_fb_li.c
@@ -406,6 +406,10 @@ _ecore_fb_li_device_fd_callback(void *data, Ecore_Fd_Handler *fdh EINA_UNUSED)
406 dev = (Ecore_Fb_Input_Device*)data; 406 dev = (Ecore_Fb_Input_Device*)data;
407 /* read up to 64 events at once */ 407 /* read up to 64 events at once */
408 len = read(dev->fd, &ev, sizeof(ev)); 408 len = read(dev->fd, &ev, sizeof(ev));
409 if (len < 0) {
410 dev->listen = EINA_FALSE;
411 return EINA_FALSE;
412 }
409 for(i = 0; i < (int)(len / sizeof(ev[0])); i++) 413 for(i = 0; i < (int)(len / sizeof(ev[0])); i++)
410 { 414 {
411 switch(ev[i].type) 415 switch(ev[i].type)