From: Jaehoon Jeong Date: Tue, 28 Jul 2015 10:43:14 +0000 (+0900) Subject: x11: bugfix in event handling X-Git-Tag: accepted/tizen/mobile/20151221.050925~34^2~251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f786536fee75029b6a8e5ea844d4410ca881a50e;p=platform%2Fcore%2Fuifw%2Fpepper.git x11: bugfix in event handling - modify to always consume events, even if not using x-input-backend Change-Id: I109cc73df771c3a190b7d6644f60f5389e7964fe --- diff --git a/src/lib/x11/x11-common.c b/src/lib/x11/x11-common.c index 804798f..a6759ac 100644 --- a/src/lib/x11/x11-common.c +++ b/src/lib/x11/x11-common.c @@ -44,9 +44,6 @@ x11_handle_event(int fd, uint32_t mask, void *data) uint32_t count = 0; - if (!connection->use_xinput) - return 0; - /* TODO: At now, x11-backend has only 1 seat per connection, "seat0" * but if not, we need to find matched seat at here */ @@ -65,7 +62,8 @@ x11_handle_event(int fd, uint32_t mask, void *data) case XCB_BUTTON_PRESS: case XCB_BUTTON_RELEASE: case XCB_MOTION_NOTIFY: - x11_handle_input_event(seat, type, event); + if (connection->use_xinput) + x11_handle_input_event(seat, type, event); break; case XCB_EXPOSE: PEPPER_TRACE("XCB_EXPOSE\n");