From 875fd011814fbd38bf8b02b572c3b46c34bbfd8f Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 14 Jun 2023 17:10:44 +0200 Subject: [PATCH] Fix missing XFixes build Make sure we can actually build without XFixes libraries. --- unix/x0vncserver/XDesktop.cxx | 2 ++ unix/x0vncserver/XDesktop.h | 2 ++ 2 files changed, 4 insertions(+) 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(); }; -- 2.39.5