summaryrefslogtreecommitdiff
path: root/gdk/x11/gdkdevicemanager-x11.c
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2012-03-02 12:52:12 +0000
committerJavier Jardón <jjardon@gnome.org>2012-03-02 12:52:12 +0000
commit962a5d8b8a457a7829555596d872f9180ceaf829 (patch)
tree4b4692da23a7375b9deac990fcbe3b9b09255ddb /gdk/x11/gdkdevicemanager-x11.c
parentc922967155faa9e895567ead82000ac1fde7fbee (diff)
downloadgtk+-962a5d8b8a457a7829555596d872f9180ceaf829.tar.gz
Require XInput2.h in X11 backend
Also remove support for XInput.h
Diffstat (limited to 'gdk/x11/gdkdevicemanager-x11.c')
-rw-r--r--gdk/x11/gdkdevicemanager-x11.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/gdk/x11/gdkdevicemanager-x11.c b/gdk/x11/gdkdevicemanager-x11.c
index 75470636a9..a34ff664ca 100644
--- a/gdk/x11/gdkdevicemanager-x11.c
+++ b/gdk/x11/gdkdevicemanager-x11.c
@@ -19,12 +19,9 @@
#include "gdkx11devicemanager-core.h"
#include "gdkdevicemanagerprivate-core.h"
-#ifdef XINPUT_XFREE
-#include "gdkx11devicemanager-xi.h"
#ifdef XINPUT_2
#include "gdkx11devicemanager-xi2.h"
#endif
-#endif
#include "gdkinternals.h"
#include "gdkprivate-x11.h"
@@ -39,7 +36,7 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
{
if (!g_getenv ("GDK_CORE_DEVICE_EVENTS"))
{
-#if defined (XINPUT_2) || defined (XINPUT_XFREE)
+#ifdef XINPUT_2
int opcode, firstevent, firsterror;
Display *xdisplay;
@@ -48,7 +45,6 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
if (XQueryExtension (xdisplay, "XInputExtension",
&opcode, &firstevent, &firsterror))
{
-#ifdef XINPUT_2
int major, minor;
major = 2;
@@ -74,18 +70,8 @@ _gdk_x11_device_manager_new (GdkDisplay *display)
return GDK_DEVICE_MANAGER (device_manager_xi2);
}
- else
-#endif /* XINPUT_2 */
- {
- GDK_NOTE (INPUT, g_print ("Creating XI device manager\n"));
-
- return g_object_new (GDK_TYPE_X11_DEVICE_MANAGER_XI,
- "display", display,
- "event-base", firstevent,
- NULL);
- }
}
-#endif /* XINPUT_2 || XINPUT_XFREE */
+#endif /* XINPUT_2 */
}
GDK_NOTE (INPUT, g_print ("Creating core device manager\n"));