summaryrefslogtreecommitdiff
path: root/src/desktop/Popup.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-08-03 16:39:54 +0200
committerVaxry <vaxry@vaxry.net>2025-08-03 16:39:54 +0200
commitf6d8e86439473a5df84cbf1106dafee517f535b0 (patch)
tree5897377bc42b7d03e736c39c1dd18a8559db7ba2 /src/desktop/Popup.cpp
parent61826dc7acd18ef8f2e8d1ccda9c08f70eb72e6d (diff)
popup: imorove logging, use fadeAlpha for opacity
Diffstat (limited to 'src/desktop/Popup.cpp')
-rw-r--r--src/desktop/Popup.cpp6
1 files changed, 5 insertions, 1 deletions
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<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)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)};