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 <X11/extension/XInput2.h> 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
This commit is contained in:
Patrick Welche 2012-01-09 11:27:28 +00:00
parent d05db5f5ff
commit 2ceb092afc

View File

@ -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 */