summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-11-13 00:08:04 +0000
committerGitHub <noreply@github.com>2025-11-13 00:08:04 +0000
commit64ee8f8a72d62069a6bef45ca05bef1d0d412e1f (patch)
tree19043160e410c3690abbd3200e266ce41cad6320 /src/helpers
parentb77cbad50251f0506b61d834b025247dcf74dddf (diff)
layout: include reserved area in float fit (#12289)
Ref https://github.com/basecamp/omarchy/issues/3327
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.cpp4
-rw-r--r--src/helpers/Monitor.hpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 74dd995b..50a8c120 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -1509,6 +1509,10 @@ CBox CMonitor::logicalBox() {
return {m_position, m_size};
}
+CBox CMonitor::logicalBoxMinusExtents() {
+ return {m_position + m_reservedTopLeft, m_size - m_reservedTopLeft - m_reservedBottomRight};
+}
+
void CMonitor::scheduleDone() {
if (m_doneScheduled)
return;
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index 5be6a7eb..f1f46669 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -298,6 +298,7 @@ class CMonitor {
WORKSPACEID activeWorkspaceID();
WORKSPACEID activeSpecialWorkspaceID();
CBox logicalBox();
+ CBox logicalBoxMinusExtents();
void scheduleDone();
uint32_t isSolitaryBlocked(bool full = false);
void recheckSolitary();