diff --git a/include/hyprcursor/hyprcursor.hpp b/include/hyprcursor/hyprcursor.hpp index e543a8c..2be1bf3 100644 --- a/include/hyprcursor/hyprcursor.hpp +++ b/include/hyprcursor/hyprcursor.hpp @@ -51,14 +51,16 @@ namespace Hyprcursor { struct for cursor manager options */ struct SManagerOptions { + explicit SManagerOptions(); + /*! The function used for logging by the cursor manager */ - PHYPRCURSORLOGFUNC logFn = nullptr; + PHYPRCURSORLOGFUNC logFn; /*! Allow fallback to env and first theme found */ - bool allowDefaultFallback = true; + bool allowDefaultFallback; }; /*! diff --git a/libhyprcursor/hyprcursor.cpp b/libhyprcursor/hyprcursor.cpp index e20d3f2..b6793ec 100644 --- a/libhyprcursor/hyprcursor.cpp +++ b/libhyprcursor/hyprcursor.cpp @@ -201,6 +201,11 @@ static std::string getFullPathForThemeName(const std::string& name, PHYPRCURSORL return ""; } +SManagerOptions::SManagerOptions() { + logFn = nullptr; + allowDefaultFallback = true; +} + CHyprcursorManager::CHyprcursorManager(const char* themeName_) { init(themeName_); }