[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
  Web www.spinics.net

Re: Building gtk+-3.2.3 on natty

On Wed, Jan 04, 2012 at 09:58:23PM -0800, john beritz wrote:
> gdkwindow-x11.c: In function '_gdk_x11_moveresize_handle_event':
> gdkwindow-x11.c:4301:9: error: 'XIEvent' undeclared (first use in this function)

It seems that there is an inconsistency between #defines:

n XThe 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.

Can you look in your config.h file, and confirm that
HAVE_XGENERICEVENTS is defined but XINPUT_2 is not?

Does XInput2.h exist on your system?

Other developers: attached patch against head rather than 3.2.3
looks about right...


diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 7773fd7..1f61764 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);
+#if defined (HAVE_XGENERICEVENTS) && defined (XINPUT_2)
     case GenericEvent:
         /* we just assume this is an XI2 event */
gtk-list mailing list

[GIMP Users]     [Yosemite News]    [Yosemite Photos]    [Gimp's Home]     [Steve's Art]

Add to Google Powered by Linux