summaryrefslogtreecommitdiff
path: root/src/mtouch.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mtouch.c')
-rw-r--r--src/mtouch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mtouch.c b/src/mtouch.c
index e469d2e..cb1c44c 100644
--- a/src/mtouch.c
+++ b/src/mtouch.c
@@ -18,6 +18,8 @@ int open_mtouch(struct MTouch *mt, int fd)
18 int rc; 18 int rc;
19 init_iobuf(&mt->buf); 19 init_iobuf(&mt->buf);
20 init_hwdata(&mt->hw); 20 init_hwdata(&mt->hw);
21 init_state(&mt->os);
22 init_state(&mt->ns);
21 if (mt->grabbed) 23 if (mt->grabbed)
22 return 0; 24 return 0;
23 SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1)); 25 SYSCALL(rc = ioctl(fd, EVIOCGRAB, (pointer)1));