popup: reposition with reserved taken into account

ref https://github.com/hyprwm/Hyprland/discussions/13194
This commit is contained in:
Vaxry 2026-02-07 11:11:39 +00:00
parent 63eb6b3bda
commit cfbbfb591a
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -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 {