summaryrefslogtreecommitdiff
path: root/src/desktop/Window.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-01-23 21:55:41 +0100
committerGitHub <noreply@github.com>2025-01-23 21:55:41 +0100
commit0a1ae48a9fd6eb76baad27de98c00f653a55e4ac (patch)
tree007cd36eb83d343d2aba49cf0741028c5f554895 /src/desktop/Window.hpp
parentae403e6a05452336abd97e61be2706f6a930d827 (diff)
core: move all shared_ptrs from the STL to hyprutils (#9143)
Diffstat (limited to 'src/desktop/Window.hpp')
-rw-r--r--src/desktop/Window.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/desktop/Window.hpp b/src/desktop/Window.hpp
index ebda235c..5b4ad654 100644
--- a/src/desktop/Window.hpp
+++ b/src/desktop/Window.hpp
@@ -296,8 +296,8 @@ class CWindow {
uint64_t m_eSuppressedEvents = SUPPRESS_NONE;
// desktop components
- std::unique_ptr<CSubsurface> m_pSubsurfaceHead;
- std::unique_ptr<CPopup> m_pPopupHead;
+ UP<CSubsurface> m_pSubsurfaceHead;
+ UP<CPopup> m_pPopupHead;
// Animated border
CGradientValueData m_cRealBorderColor = {0};
@@ -328,14 +328,14 @@ class CWindow {
// Window decorations
// TODO: make this a SP.
- std::vector<std::unique_ptr<IHyprWindowDecoration>> m_dWindowDecorations;
- std::vector<IHyprWindowDecoration*> m_vDecosToRemove;
+ std::vector<UP<IHyprWindowDecoration>> m_dWindowDecorations;
+ std::vector<IHyprWindowDecoration*> m_vDecosToRemove;
// Special render data, rules, etc
SWindowData m_sWindowData;
// Transformers
- std::vector<std::unique_ptr<IWindowTransformer>> m_vTransformers;
+ std::vector<UP<IWindowTransformer>> m_vTransformers;
// for alpha
PHLANIMVAR<float> m_fActiveInactiveAlpha;
@@ -396,7 +396,7 @@ class CWindow {
SBoxExtents getFullWindowExtents();
CBox getWindowBoxUnified(uint64_t props);
CBox getWindowIdealBoundingBoxIgnoreReserved();
- void addWindowDeco(std::unique_ptr<IHyprWindowDecoration> deco);
+ void addWindowDeco(UP<IHyprWindowDecoration> deco);
void updateWindowDecos();
void removeWindowDeco(IHyprWindowDecoration* deco);
void uncacheWindowDecos();