From e83bcae27fb48dc340b17a117a4d0f9b40711faa Mon Sep 17 00:00:00 2001 From: Ikalco <73481042+ikalco@users.noreply.github.com> Date: Fri, 17 May 2024 19:12:03 +0000 Subject: [PATCH] make SCursorManager constructor because ABI --- include/hyprcursor/hyprcursor.hpp | 6 ++++-- libhyprcursor/hyprcursor.cpp | 5 +++++ 2 files changed, 9 insertions(+), 2 deletions(-) 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_); }