diff options
| author | EvilLary <EvilLary@proton.me> | 2026-02-03 23:44:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-03 20:44:41 +0000 |
| commit | cd7bdc7a43542370b5f57b97b25302a24abce126 (patch) | |
| tree | 4e8d95e97191aa075aca29dcee8a3b62c0eb1171 /src | |
| parent | e123fd3e667177fa67624b9f5960653410c7bebb (diff) | |
hyprerror: add padding & adjust for scale when reserving area (#13158)
Diffstat (limited to 'src')
| -rw-r--r-- | src/hyprerror/HyprError.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hyprerror/HyprError.cpp b/src/hyprerror/HyprError.cpp index 50cbd218..1a6bab99 100644 --- a/src/hyprerror/HyprError.cpp +++ b/src/hyprerror/HyprError.cpp @@ -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); |
