summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2026-02-07 11:11:39 +0000
committerVaxry <vaxry@vaxry.net>2026-02-07 11:11:45 +0000
commitcfbbfb591ae5c7d11bae72effe6e08ef60ce7453 (patch)
treeb77d46dacde88c1de4efa6b6bba4ed8fbc14408e /src
parent63eb6b3bda71e7e5a1043f585ae39e878cb56b55 (diff)
popup: reposition with reserved taken into account
ref https://github.com/hyprwm/Hyprland/discussions/13194
Diffstat (limited to 'src')
-rw-r--r--src/desktop/view/Popup.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/desktop/view/Popup.cpp b/src/desktop/view/Popup.cpp
index 841674e7..94d09428 100644
--- a/src/desktop/view/Popup.cpp
+++ b/src/desktop/view/Popup.cpp
@@ -334,8 +334,7 @@ void CPopup::reposition() {
if (!PMONITOR)
return;
- CBox box = {PMONITOR->m_position.x, PMONITOR->m_position.y, PMONITOR->m_size.x, PMONITOR->m_size.y};
- m_resource->applyPositioning(box, COORDS);
+ m_resource->applyPositioning(PMONITOR->logicalBoxMinusReserved(), COORDS);
}
SP<Desktop::View::CWLSurface> CPopup::getT1Owner() const {