diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-04-16 17:56:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-16 17:56:25 +0100 |
| commit | 4cce7f60a9c8772d18ffb43cb74aa227ab4b3bc4 (patch) | |
| tree | 855b7ae720b92a79facd020b178cc233baf97a1b /src/plugins/PluginAPI.cpp | |
| parent | ff459f4a2af01e3c99ededc827b6a3edbda55965 (diff) | |
notifications: move and small refactor (#14094)
moves to notification/, and adds a new style manager getter.
Diffstat (limited to 'src/plugins/PluginAPI.cpp')
| -rw-r--r-- | src/plugins/PluginAPI.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/PluginAPI.cpp b/src/plugins/PluginAPI.cpp index c979ea96..4722924d 100644 --- a/src/plugins/PluginAPI.cpp +++ b/src/plugins/PluginAPI.cpp @@ -4,7 +4,7 @@ #include "../plugins/PluginSystem.hpp" #include "../managers/eventLoop/EventLoopManager.hpp" #include "../config/legacy/ConfigManager.hpp" -#include "../debug/HyprNotificationOverlay.hpp" +#include "../notification/NotificationOverlay.hpp" #include "../layout/target/Target.hpp" #include "../layout/supplementary/WorkspaceAlgoMatcher.hpp" #include <dlfcn.h> @@ -113,7 +113,7 @@ APICALL bool HyprlandAPI::addNotification(HANDLE handle, const std::string& text if (!PLUGIN) return false; - g_pHyprNotificationOverlay->addNotification(text, color, timeMs); + Notification::overlay()->addNotification(text, color, timeMs); return true; } @@ -301,7 +301,7 @@ APICALL bool addNotificationV2(HANDLE handle, const std::unordered_map<std::stri if (iterator != data.end()) icon = std::any_cast<eIcons>(iterator->second); - g_pHyprNotificationOverlay->addNotification(text, COLOR, TIME, icon); + Notification::overlay()->addNotification(text, COLOR, TIME, icon); } catch (std::exception& e) { // bad any_cast most likely, plugin error |
