summaryrefslogtreecommitdiff
path: root/capplets/mouse/mate-mouse-properties.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-01 21:12:07 +0300
committermonsta <[email protected]>2016-11-01 21:12:07 +0300
commit7ab2ca013c976a12830ae525df1c7cb66222c0ea (patch)
tree2056543e5166579bf9eff57735c1f6c194e7b547 /capplets/mouse/mate-mouse-properties.c
parent80d37475904c9e58b8a291bcd6d49867dbf23506 (diff)
downloadmate-control-center-7ab2ca013c976a12830ae525df1c7cb66222c0ea.tar.bz2
mate-control-center-7ab2ca013c976a12830ae525df1c7cb66222c0ea.tar.xz
build: require XInput unconditionally - same as done in m-s-d
Diffstat (limited to 'capplets/mouse/mate-mouse-properties.c')
-rw-r--r--capplets/mouse/mate-mouse-properties.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/capplets/mouse/mate-mouse-properties.c b/capplets/mouse/mate-mouse-properties.c
index 0a6fb88d..fb4bb74b 100644
--- a/capplets/mouse/mate-mouse-properties.c
+++ b/capplets/mouse/mate-mouse-properties.c
@@ -38,10 +38,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
-#ifdef HAVE_XINPUT
+
#include <X11/Xatom.h>
#include <X11/extensions/XInput.h>
-#endif
#ifdef HAVE_XCURSOR
#include <X11/Xcursor/Xcursor.h>
@@ -204,7 +203,6 @@ orientation_radio_button_toggled (GtkToggleButton *togglebutton,
static void
synaptics_check_capabilities (GtkBuilder *dialog)
{
-#ifdef HAVE_XINPUT
int numdevices, i;
XDeviceInfo *devicelist;
Atom realtype, prop;
@@ -250,14 +248,12 @@ synaptics_check_capabilities (GtkBuilder *dialog)
XCloseDevice (GDK_DISPLAY_XDISPLAY(gdk_display_get_default()), device);
}
XFreeDeviceList (devicelist);
-#endif
}
static gboolean
find_synaptics (void)
{
gboolean ret = FALSE;
-#ifdef HAVE_XINPUT
int numdevices, i;
XDeviceInfo *devicelist;
Atom realtype, prop;
@@ -311,7 +307,7 @@ find_synaptics (void)
XFree (version);
XFreeDeviceList (devicelist);
-#endif
+
return ret;
}