From 4cce7f60a9c8772d18ffb43cb74aa227ab4b3bc4 Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Thu, 16 Apr 2026 17:56:25 +0100 Subject: notifications: move and small refactor (#14094) moves to notification/, and adds a new style manager getter. --- src/debug/HyprCtl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/debug/HyprCtl.cpp') diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index 4772894f..a86c61a3 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -63,7 +63,7 @@ using namespace Hyprutils::OS; #include "../managers/XWaylandManager.hpp" #include "../plugins/PluginSystem.hpp" #include "../managers/animation/AnimationManager.hpp" -#include "../debug/HyprNotificationOverlay.hpp" +#include "../notification/NotificationOverlay.hpp" #include "../render/Renderer.hpp" #include "../render/OpenGL.hpp" #include "../layout/space/Space.hpp" @@ -2002,7 +2002,7 @@ static std::string dispatchNotify(eHyprCtlOutputFormat format, std::string reque const auto MESSAGE = vars.join(" ", msgidx); - g_pHyprNotificationOverlay->addNotification(MESSAGE, color, time, sc(icon), fontsize); + Notification::overlay()->addNotification(MESSAGE, color, time, sc(icon), fontsize); return "ok"; } @@ -2022,7 +2022,7 @@ static std::string dispatchDismissNotify(eHyprCtlOutputFormat format, std::strin } catch (std::exception& e) { return "invalid arg 1"; } } - g_pHyprNotificationOverlay->dismissNotifications(amount); + Notification::overlay()->dismissNotifications(amount); return "ok"; } -- cgit v1.2.3