xfreerdp-server: fix build without XFIXES
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Thu, 20 Jun 2013 16:11:32 +0000 (12:11 -0400)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Thu, 20 Jun 2013 16:11:32 +0000 (12:11 -0400)
server/X11/xf_cursor.c
server/X11/xf_update.c

index ebd523f..da43d8e 100644 (file)
@@ -38,6 +38,7 @@
 
 int xf_cursor_init(xfInfo* xfi)
 {
+#ifdef WITH_XFIXES
        int event;
        int error;
 
@@ -50,6 +51,6 @@ int xf_cursor_init(xfInfo* xfi)
        xfi->xfixes_notify_event = event + XFixesCursorNotify;
 
        XFixesSelectCursorInput(xfi->display, DefaultRootWindow(xfi->display), XFixesDisplayCursorNotifyMask);
-
+#endif
        return 0;
 }
index 33dd426..67addb5 100644 (file)
@@ -80,12 +80,13 @@ void* xf_update_thread(void* param)
                                        ResetEvent(xfp->updateSentEvent);
                                }
                        }
+#ifdef WITH_XFIXES
                        else if (xevent.type == xfi->xfixes_notify_event)
                        {
                                XFixesCursorImage* ci = XFixesGetCursorImage(xfi->display);
-
                                XFree(ci);
                        }
+#endif
                }
 
                end = GetTickCount();