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.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)};