Re: Building gtk+-3.2.3 on natty
- From: Patrick Welche <prlw1 cam ac uk>
- To: john beritz <jberitz gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Building gtk+-3.2.3 on natty
- Date: Fri, 6 Jan 2012 16:44:17 +0000
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]