xfreerdp-server: fix build without XFIXES
This commit is contained in:
parent
62fe554c6a
commit
e166840a26
@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
int xf_cursor_init(xfInfo* xfi)
|
int xf_cursor_init(xfInfo* xfi)
|
||||||
{
|
{
|
||||||
|
#ifdef WITH_XFIXES
|
||||||
int event;
|
int event;
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
@ -50,6 +51,6 @@ int xf_cursor_init(xfInfo* xfi)
|
|||||||
xfi->xfixes_notify_event = event + XFixesCursorNotify;
|
xfi->xfixes_notify_event = event + XFixesCursorNotify;
|
||||||
|
|
||||||
XFixesSelectCursorInput(xfi->display, DefaultRootWindow(xfi->display), XFixesDisplayCursorNotifyMask);
|
XFixesSelectCursorInput(xfi->display, DefaultRootWindow(xfi->display), XFixesDisplayCursorNotifyMask);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -80,12 +80,13 @@ void* xf_update_thread(void* param)
|
|||||||
ResetEvent(xfp->updateSentEvent);
|
ResetEvent(xfp->updateSentEvent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef WITH_XFIXES
|
||||||
else if (xevent.type == xfi->xfixes_notify_event)
|
else if (xevent.type == xfi->xfixes_notify_event)
|
||||||
{
|
{
|
||||||
XFixesCursorImage* ci = XFixesGetCursorImage(xfi->display);
|
XFixesCursorImage* ci = XFixesGetCursorImage(xfi->display);
|
||||||
|
|
||||||
XFree(ci);
|
XFree(ci);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
end = GetTickCount();
|
end = GetTickCount();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user