From beee22a95ed9044950e5486f22edd813e00ffa2c Mon Sep 17 00:00:00 2001 From: Kamikadze <40305144+Kam1k4dze@users.noreply.github.com> Date: Thu, 14 Aug 2025 19:44:56 +0500 Subject: refactor: Use new hyprutils casts (#11377) --- src/desktop/Popup.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/desktop/Popup.cpp') diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp index 2b0fdbf8..7dc8ad53 100644 --- a/src/desktop/Popup.cpp +++ b/src/desktop/Popup.cpp @@ -90,7 +90,7 @@ void CPopup::initAllSignals() { void CPopup::onNewPopup(SP popup) { const auto& POPUP = m_children.emplace_back(CPopup::create(popup, m_self)); POPUP->m_self = POPUP; - Debug::log(LOG, "New popup at {:x}", (uintptr_t)this); + Debug::log(LOG, "New popup at {:x}", rc(this)); } void CPopup::onDestroy() { @@ -104,7 +104,7 @@ void CPopup::onDestroy() { m_wlSurface.reset(); if (m_fadingOut && m_alpha->isBeingAnimated()) { - Debug::log(LOG, "popup {:x}: skipping full destroy, animating", (uintptr_t)this); + Debug::log(LOG, "popup {:x}: skipping full destroy, animating", rc(this)); return; } @@ -112,7 +112,7 @@ void CPopup::onDestroy() { } void CPopup::fullyDestroy() { - Debug::log(LOG, "popup {:x} fully destroying", (uintptr_t)this); + Debug::log(LOG, "popup {:x} fully destroying", rc(this)); g_pHyprRenderer->makeEGLCurrent(); std::erase_if(g_pHyprOpenGL->m_popupFramebuffers, [&](const auto& other) { return other.first.expired() || other.first == m_self; }); @@ -151,7 +151,7 @@ void CPopup::onMap() { m_alpha->setValueAndWarp(0.F); *m_alpha = 1.F; - Debug::log(LOG, "popup {:x}: mapped", (uintptr_t)this); + Debug::log(LOG, "popup {:x}: mapped", rc(this)); } void CPopup::onUnmap() { @@ -164,7 +164,7 @@ void CPopup::onUnmap() { return; } - Debug::log(LOG, "popup {:x}: unmapped", (uintptr_t)this); + Debug::log(LOG, "popup {:x}: unmapped", rc(this)); // if the popup committed a different size right now, we also need to damage the old size. const Vector2D MAX_DAMAGE_SIZE = {std::max(m_lastSize.x, m_resource->m_surface->m_surface->m_current.size.x), @@ -266,7 +266,7 @@ void CPopup::onCommit(bool ignoreSiblings) { } void CPopup::onReposition() { - Debug::log(LOG, "Popup {:x} requests reposition", (uintptr_t)this); + Debug::log(LOG, "Popup {:x} requests reposition", rc(this)); m_requestedReposition = true; -- cgit v1.2.3