GNOME Bugzilla – Bug 667534
Non-XInput2 build fix
Last modified: 2012-01-10 13:56:52 UTC
Created attachment 204856 [details] [review] trivial build fix for non-XInput2 systems The result of http://mail.gnome.org/archives/gtk-list/2012-January/msg00028.html 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. I haven't tested this on with-and-with XInput2 systems - but I think it is obvious!
Review of attachment 204856 [details] [review]: XIEvent must indeed be protected by defined(XINPUT_2). Looks good to me
commited as http://git.gnome.org/browse/gtk+/commit/?id=2ceb092afca29e6da870c81a67e9049497652689 I take it that is the right thing to do when one sees "accepted-commit_now" ?