summaryrefslogtreecommitdiff
path: root/src/desktop/Popup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/desktop/Popup.cpp')
-rw-r--r--src/desktop/Popup.cpp12
1 files changed, 6 insertions, 6 deletions
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<CXDGPopupResource> 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<uintptr_t>(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<uintptr_t>(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<uintptr_t>(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<uintptr_t>(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<uintptr_t>(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<uintptr_t>(this));
m_requestedReposition = true;