From: Sung-Jin Park Date: Tue, 13 Jun 2017 07:30:28 +0000 (+0900) Subject: evdev: fix wrong event mask check X-Git-Tag: submit/tizen/20170613.102437~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e74d3f9ecae01e8c1737afc61583e666333998f;p=platform%2Fcore%2Fuifw%2Fpepper.git evdev: fix wrong event mask check Change-Id: Icf569cd5fbbf637f94e48831cd24e735d8ac58c7 Signed-off-by: Sung-Jin Park --- diff --git a/src/lib/evdev/evdev.c b/src/lib/evdev/evdev.c index 00cc4dc..d7916e4 100644 --- a/src/lib/evdev/evdev.c +++ b/src/lib/evdev/evdev.c @@ -113,7 +113,7 @@ _evdev_keyboard_event_fd_read(int fd, uint32_t mask, void *data) struct input_event ev[EVENT_MAX]; evdev_device_info_t *device_info = (evdev_device_info_t *)data; - PEPPER_CHECK(mask & (WL_EVENT_HANGUP | WL_EVENT_ERROR), + PEPPER_CHECK(!(mask & (WL_EVENT_HANGUP | WL_EVENT_ERROR)), return 0, "[%s] With the given fd, there is an error or it's been hung-up.\n", __FUNCTION__);