From 2ceb092afca29e6da870c81a67e9049497652689 Mon Sep 17 00:00:00 2001 From: Patrick Welche Date: Mon, 9 Jan 2012 11:27:28 +0000 Subject: [PATCH] Non-XInput2 build fix The part in gdkwindow-x11.c which uses XIEvent and friends is "protected" by HAVE_XGENERICEVENTS, i.e., XGetEventData() has been found. (Xlib.h) XIEvent and friends are defined in which is included by gdkdisplay-x11.h if XINPUT_2 is defined. The patch makes sure XIEvent is only used if XINPUT_2 is defined. https://bugzilla.gnome.org/show_bug.cgi?id=667534 --- gdk/x11/gdkwindow-x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 7773fd7497..1f61764ea6 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -4366,7 +4366,7 @@ _gdk_x11_moveresize_handle_event (XEvent *event) finish_drag (mv_resize); break; -#ifdef HAVE_XGENERICEVENTS +#if defined (HAVE_XGENERICEVENTS) && defined (XINPUT_2) case GenericEvent: { /* we just assume this is an XI2 event */