mirror of
https://github.com/virtcode/hypr-dynamic-cursors
synced 2025-09-19 16:13:21 +02:00
fix: move shared ptrs to hyprutils like hl (#55)
This commit is contained in:
parent
e26501d84d
commit
e507bc5aea
3 changed files with 120 additions and 53 deletions
|
@ -57,7 +57,7 @@ void CHighresHandler::update() {
|
|||
options.logFn = hcLogger;
|
||||
options.allowDefaultFallback = true;
|
||||
|
||||
manager = std::make_unique<Hyprcursor::CHyprcursorManager>(name.empty() ? nullptr : name.c_str(), options);
|
||||
manager = makeUnique<Hyprcursor::CHyprcursorManager>(name.empty() ? nullptr : name.c_str(), options);
|
||||
if (!manager->valid()) {
|
||||
Debug::log(ERR, "Hyprcursor for dynamic cursors failed loading theme \"{}\", falling back to pixelated trash.", name);
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@ APICALL EXPORT PLUGIN_DESCRIPTION_INFO PLUGIN_INIT(HANDLE handle) {
|
|||
finishConfig();
|
||||
|
||||
// init things
|
||||
g_pDynamicCursors = std::make_unique<CDynamicCursors>();
|
||||
g_pDynamicCursors = makeUnique<CDynamicCursors>();
|
||||
|
||||
// try hooking
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue