mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2026-01-03 02:50:07 +01:00
make SCursorManager constructor because ABI
This commit is contained in:
parent
001b294f59
commit
e83bcae27f
2 changed files with 9 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
|
|
|||
|
|
@ -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_);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue