From: Pierre Ossman Date: Wed, 14 Jun 2023 15:10:44 +0000 (+0200) Subject: Fix missing XFixes build X-Git-Tag: v1.13.90~74^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=875fd011814fbd38bf8b02b572c3b46c34bbfd8f;p=tigervnc.git Fix missing XFixes build Make sure we can actually build without XFixes libraries. --- diff --git a/unix/x0vncserver/XDesktop.cxx b/unix/x0vncserver/XDesktop.cxx index 43819f06..e9217eed 100644 --- a/unix/x0vncserver/XDesktop.cxx +++ b/unix/x0vncserver/XDesktop.cxx @@ -947,6 +947,7 @@ void XDesktop::queryRejected() queryConnectSock = 0; } +#ifdef HAVE_XFIXES bool XDesktop::setCursor() { XFixesCursorImage *cim; @@ -994,3 +995,4 @@ bool XDesktop::setCursor() XFree(cim); return true; } +#endif diff --git a/unix/x0vncserver/XDesktop.h b/unix/x0vncserver/XDesktop.h index 99d18065..1cb73f43 100644 --- a/unix/x0vncserver/XDesktop.h +++ b/unix/x0vncserver/XDesktop.h @@ -105,7 +105,9 @@ protected: void deleteAddedKeysyms(Display* dpy); KeyCode keysymToKeycode(Display* dpy, KeySym keysym); #endif +#ifdef HAVE_XFIXES bool setCursor(); +#endif rfb::ScreenSet computeScreenLayout(); };