diff options
Diffstat (limited to 'src/managers/XCursorManager.cpp')
| -rw-r--r-- | src/managers/XCursorManager.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/managers/XCursorManager.cpp b/src/managers/XCursorManager.cpp index 0f0c9e80..198bc2a5 100644 --- a/src/managers/XCursorManager.cpp +++ b/src/managers/XCursorManager.cpp @@ -1,3 +1,9 @@ +#define Time XTime__ +extern "C" { +#include <X11/Xcursor/Xcursor.h> +} +#undef Time + #include <algorithm> #include <cstring> #include <dirent.h> @@ -176,8 +182,9 @@ SP<SXCursors> CXCursorManager::getShape(std::string const& shape, int size, floa return defaultCursor; } -SP<SXCursors> CXCursorManager::createCursor(std::string const& shape, XcursorImages* xImages) { - auto xcursor = makeShared<SXCursors>(); +SP<SXCursors> CXCursorManager::createCursor(std::string const& shape, void* ximages) { + auto xcursor = makeShared<SXCursors>(); + XcursorImages* xImages = (XcursorImages*)ximages; for (int i = 0; i < xImages->nimage; i++) { auto xImage = xImages->images[i]; |
