[gnome-control-center/gnome-3-24] mouse: Fix synaptics check
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-24] mouse: Fix synaptics check
- Date: Fri, 7 Jul 2017 13:39:56 +0000 (UTC)
commit 2a86fbb02cb0bce11f011ecfdc5c611967009f57
Author: Rui Matos <tiagomatos gmail com>
Date: Fri Jul 7 15:25:19 2017 +0200
mouse: Fix synaptics check
It seems like (at least some versions of) gdk don't set
GDK_SOURCE_TOUCHPAD on synaptics devices. In this case though, we
don't need the additional check. Just knowing if there's any device
being driven by this X driver is enough.
panels/mouse/cc-mouse-caps-helper.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/panels/mouse/cc-mouse-caps-helper.c b/panels/mouse/cc-mouse-caps-helper.c
index 3b912ce..65e11df 100644
--- a/panels/mouse/cc-mouse-caps-helper.c
+++ b/panels/mouse/cc-mouse-caps-helper.c
@@ -125,8 +125,6 @@ cc_synaptics_check (void)
GDK_SEAT_CAPABILITY_ALL_POINTING);
for (l = devicelist; l != NULL; l = l->next) {
GdkDevice *device = l->data;
- if (gdk_device_get_source (device) != GDK_SOURCE_TOUCHPAD)
- continue;
if ((XIGetProperty (display, gdk_x11_device_get_id (device), prop,
0, 2, False, XA_INTEGER, &realtype, &realformat, &nitems,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]