Re: Building gtk+-3.2.3 on natty

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


Cheers,

Patrick
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);
       break;
 
-#ifdef HAVE_XGENERICEVENTS
+#if defined (HAVE_XGENERICEVENTS) && defined (XINPUT_2)
     case GenericEvent:
       {
         /* we just assume this is an XI2 event */
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux