summaryrefslogtreecommitdiff
path: root/src/events/Popups.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/events/Popups.cpp')
-rw-r--r--src/events/Popups.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/events/Popups.cpp b/src/events/Popups.cpp
index 2649abce..5946e1c9 100644
--- a/src/events/Popups.cpp
+++ b/src/events/Popups.cpp
@@ -164,6 +164,9 @@ void Events::listener_mapPopupXDG(void* owner, void* data) {
g_pHyprRenderer->damageBox(lx - extents.x, ly - extents.y, extents.width + 2, extents.height + 2);
+ if (PPOPUP->monitor)
+ g_pProtocolManager->m_pFractionalScaleProtocolManager->setPreferredScaleForSurface(PPOPUP->popup->base->surface, PPOPUP->monitor->scale);
+
Debug::log(LOG, "XDG Popup got assigned a surfaceTreeNode %x", PPOPUP->pSurfaceTree);
}