X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffreeglut_xinput_x11.c;h=68e45628aeafd43eee1308e0a506f30462c20d9c;hb=abdb01cfcb46c9804e55c56551520c29b2bb3e65;hp=40677faa1c46805a93e7b075c91bbc11b072ea05;hpb=57b0e0aeb1ffe8075226749cdd484d250966d0cf;p=freeglut diff --git a/src/x11/freeglut_xinput_x11.c b/src/x11/freeglut_xinput_x11.c index 40677fa..68e4562 100644 --- a/src/x11/freeglut_xinput_x11.c +++ b/src/x11/freeglut_xinput_x11.c @@ -5,7 +5,7 @@ #include "freeglut_internal.h" -#if TARGET_HOST_POSIX_X11 && HAVE_X11_EXTENSIONS_XINPUT2_H +#if HAVE_X11_EXTENSIONS_XINPUT2_H #include #include @@ -28,7 +28,7 @@ void fgRegisterDevices( Display* dpy, Window* win ) { unsigned char flags[2] = { 0, 0 }; int event, error; - /*Display* dpy = fgDisplay.Display; + /*Display* dpy = fgDisplay.pDisplay.Display; Window* win = glutGetXWindow();*/ /* get XInput extension opcode */ @@ -148,7 +148,7 @@ void fgHandleExtensionEvents( XEvent* base_ev ) { int i, button = 0; XGenericEventCookie* cookie = (XGenericEventCookie*)&(base_ev->xcookie); - if ( XGetEventData( fgDisplay.Display, cookie ) && (cookie->type == GenericEvent) && (cookie->extension == xi_opcode) ) { + if ( XGetEventData( fgDisplay.pDisplay.Display, cookie ) && (cookie->type == GenericEvent) && (cookie->extension == xi_opcode) ) { XIDeviceEvent* event = (XIDeviceEvent*)(cookie->data); /*printf("XI2 event type: %d - %d\n", cookie->evtype, event->type );*/ @@ -212,8 +212,6 @@ void fgHandleExtensionEvents( XEvent* base_ev ) { } fgState.Modifiers = INVALID_MODIFIERS; } - XFreeEventData( fgDisplay.Display, cookie ); + XFreeEventData( fgDisplay.pDisplay.Display, cookie ); } -#endif -