make SCursorManager constructor because ABI

This commit is contained in:
Ikalco 2024-05-17 19:12:03 +00:00
parent 001b294f59
commit e83bcae27f
2 changed files with 9 additions and 2 deletions

View file

@ -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;
};
/*!

View file

@ -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_);
}