Skip to content

Commit

Permalink
Move to Hyprland's SharedPtr from std::shared_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
Duckonaut committed May 7, 2024
1 parent b40147d commit 05b878f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <hyprland/src/config/ConfigManager.hpp>
#include <hyprland/src/desktop/Workspace.hpp>
#include <hyprland/src/helpers/Color.hpp>
#include <hyprland/src/helpers/memory/SharedPtr.hpp>
#include <hyprland/src/managers/KeybindManager.hpp>

#include "globals.hpp"
Expand All @@ -22,9 +23,9 @@ bool g_enableNotifications = false;

std::map<uint64_t, std::vector<std::string>> g_vMonitorWorkspaceMap;

static std::shared_ptr<HOOK_CALLBACK_FN> e_monitorAddedHandle = nullptr;
static std::shared_ptr<HOOK_CALLBACK_FN> e_monitorRemovedHandle = nullptr;
static std::shared_ptr<HOOK_CALLBACK_FN> e_configReloadedHandle = nullptr;
static SP<HOOK_CALLBACK_FN> e_monitorAddedHandle = nullptr;
static SP<HOOK_CALLBACK_FN> e_monitorRemovedHandle = nullptr;
static SP<HOOK_CALLBACK_FN> e_configReloadedHandle = nullptr;

void raiseNotification(const std::string& message, float timeout = 5000.0F)
{
Expand Down

0 comments on commit 05b878f

Please sign in to comment.