From f6d8e86439473a5df84cbf1106dafee517f535b0 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 3 Aug 2025 16:39:54 +0200 Subject: popup: imorove logging, use fadeAlpha for opacity --- src/desktop/Popup.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/desktop/Popup.cpp') diff --git a/src/desktop/Popup.cpp b/src/desktop/Popup.cpp index cf97cf3d..34c88350 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)POPUP); + Debug::log(LOG, "New popup at {:x}", (uintptr_t)this); } void CPopup::onDestroy() { @@ -148,6 +148,8 @@ void CPopup::onMap() { m_alpha->setValueAndWarp(0.F); *m_alpha = 1.F; + + Debug::log(LOG, "popup {:x}: mapped", (uintptr_t)this); } void CPopup::onUnmap() { @@ -160,6 +162,8 @@ void CPopup::onUnmap() { return; } + Debug::log(LOG, "popup {:x}: unmapped", (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), std::max(m_lastSize.y, m_resource->m_surface->m_surface->m_current.size.y)}; -- cgit v1.2.3