hyprerror: add padding & adjust for scale when reserving area (#13158)

This commit is contained in:
EvilLary 2026-02-03 23:44:41 +03:00 committed by GitHub
parent e123fd3e66
commit cd7bdc7a43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,7 +168,8 @@ void CHyprError::createQueued() {
m->m_reservedArea.resetType(Desktop::RESERVED_DYNAMIC_TYPE_ERROR_BAR);
}
PMONITOR->m_reservedArea.addType(Desktop::RESERVED_DYNAMIC_TYPE_ERROR_BAR, Vector2D{0.0, *BAR_POSITION == 0 ? HEIGHT : 0.0}, Vector2D{0.0, *BAR_POSITION != 0 ? HEIGHT : 0.0});
const auto RESERVED = (HEIGHT + PAD) / SCALE;
PMONITOR->m_reservedArea.addType(Desktop::RESERVED_DYNAMIC_TYPE_ERROR_BAR, Vector2D{0.0, TOPBAR ? RESERVED : 0.0}, Vector2D{0.0, !TOPBAR ? RESERVED : 0.0});
for (const auto& m : g_pCompositor->m_monitors) {
g_pHyprRenderer->arrangeLayersForMonitor(m->m_id);