forked from AuroraMiddleware/gtk
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:
parent
d05db5f5ff
commit
2ceb092afc
@ -4366,7 +4366,7 @@ _gdk_x11_moveresize_handle_event (XEvent *event)
|
|||||||
finish_drag (mv_resize);
|
finish_drag (mv_resize);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef HAVE_XGENERICEVENTS
|
#if defined (HAVE_XGENERICEVENTS) && defined (XINPUT_2)
|
||||||
case GenericEvent:
|
case GenericEvent:
|
||||||
{
|
{
|
||||||
/* we just assume this is an XI2 event */
|
/* we just assume this is an XI2 event */
|
||||||
|
Loading…
Reference in New Issue
Block a user