From 5f000306f526e38ae0df551b0e83dddc9d4c2f44 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 12 Apr 2023 18:00:01 +0100 Subject: [PATCH] popups: send scale info --- src/events/Popups.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); }