mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-23 18:03:30 +08:00
server/x11: build fix when xfixes is disabled
This commit is contained in:
parent
0fd6439123
commit
c96cbb7f74
@ -38,6 +38,7 @@
|
||||
|
||||
int xf_cursor_init(xfInfo* xfi)
|
||||
{
|
||||
#ifdef WITH_XFIXES
|
||||
int event;
|
||||
int error;
|
||||
|
||||
@ -50,6 +51,7 @@ int xf_cursor_init(xfInfo* xfi)
|
||||
xfi->xfixes_notify_event = event + XFixesCursorNotify;
|
||||
|
||||
XFixesSelectCursorInput(xfi->display, DefaultRootWindow(xfi->display), XFixesDisplayCursorNotifyMask);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -80,12 +80,14 @@ 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();
|
||||
|
Loading…
Reference in New Issue
Block a user