From f786536fee75029b6a8e5ea844d4410ca881a50e Mon Sep 17 00:00:00 2001 From: Jaehoon Jeong Date: Tue, 28 Jul 2015 19:43:14 +0900 Subject: [PATCH] x11: bugfix in event handling - modify to always consume events, even if not using x-input-backend Change-Id: I109cc73df771c3a190b7d6644f60f5389e7964fe --- src/lib/x11/x11-common.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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"); -- 2.7.4