summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.hpp2
-rw-r--r--src/debug/HyprDebugOverlay.hpp2
-rw-r--r--src/debug/HyprNotificationOverlay.cpp2
-rw-r--r--src/debug/HyprNotificationOverlay.hpp18
4 files changed, 12 insertions, 12 deletions
diff --git a/src/debug/HyprCtl.hpp b/src/debug/HyprCtl.hpp
index 2603612c..eed8265c 100644
--- a/src/debug/HyprCtl.hpp
+++ b/src/debug/HyprCtl.hpp
@@ -38,4 +38,4 @@ class CHyprCtl {
std::string m_socketPath;
};
-inline std::unique_ptr<CHyprCtl> g_pHyprCtl;
+inline UP<CHyprCtl> g_pHyprCtl;
diff --git a/src/debug/HyprDebugOverlay.hpp b/src/debug/HyprDebugOverlay.hpp
index a58ecffc..f4ef122f 100644
--- a/src/debug/HyprDebugOverlay.hpp
+++ b/src/debug/HyprDebugOverlay.hpp
@@ -48,4 +48,4 @@ class CHyprDebugOverlay {
friend class CHyprRenderer;
};
-inline std::unique_ptr<CHyprDebugOverlay> g_pDebugOverlay;
+inline UP<CHyprDebugOverlay> g_pDebugOverlay;
diff --git a/src/debug/HyprNotificationOverlay.cpp b/src/debug/HyprNotificationOverlay.cpp
index 09125243..66c68d08 100644
--- a/src/debug/HyprNotificationOverlay.cpp
+++ b/src/debug/HyprNotificationOverlay.cpp
@@ -40,7 +40,7 @@ CHyprNotificationOverlay::~CHyprNotificationOverlay() {
}
void CHyprNotificationOverlay::addNotification(const std::string& text, const CHyprColor& color, const float timeMs, const eIcons icon, const float fontSize) {
- const auto PNOTIF = m_vNotifications.emplace_back(std::make_unique<SNotification>()).get();
+ const auto PNOTIF = m_vNotifications.emplace_back(makeUnique<SNotification>()).get();
PNOTIF->text = icon != eIcons::ICON_NONE ? " " + text /* tiny bit of padding otherwise icon touches text */ : text;
PNOTIF->color = color == CHyprColor(0) ? ICONS_COLORS[icon] : color;
diff --git a/src/debug/HyprNotificationOverlay.hpp b/src/debug/HyprNotificationOverlay.hpp
index 2546d04f..b04cb73b 100644
--- a/src/debug/HyprNotificationOverlay.hpp
+++ b/src/debug/HyprNotificationOverlay.hpp
@@ -46,18 +46,18 @@ class CHyprNotificationOverlay {
bool hasAny();
private:
- CBox drawNotifications(PHLMONITOR pMonitor);
- CBox m_bLastDamage;
+ CBox drawNotifications(PHLMONITOR pMonitor);
+ CBox m_bLastDamage;
- std::vector<std::unique_ptr<SNotification>> m_vNotifications;
+ std::vector<UP<SNotification>> m_vNotifications;
- cairo_surface_t* m_pCairoSurface = nullptr;
- cairo_t* m_pCairo = nullptr;
+ cairo_surface_t* m_pCairoSurface = nullptr;
+ cairo_t* m_pCairo = nullptr;
- PHLMONITORREF m_pLastMonitor;
- Vector2D m_vecLastSize = Vector2D(-1, -1);
+ PHLMONITORREF m_pLastMonitor;
+ Vector2D m_vecLastSize = Vector2D(-1, -1);
- SP<CTexture> m_pTexture;
+ SP<CTexture> m_pTexture;
};
-inline std::unique_ptr<CHyprNotificationOverlay> g_pHyprNotificationOverlay;
+inline UP<CHyprNotificationOverlay> g_pHyprNotificationOverlay;