diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-12-31 19:23:02 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-12-31 19:23:02 +0100 |
| commit | 7525818097f92a99b2b8d02ea43bd0f8ccabd51c (patch) | |
| tree | ee707088becae9d63f05cb91da8dac6cbbee3d4c /src/Window.cpp | |
| parent | ddcae74e09ade4215da537791e10ee229e4e3f7d (diff) | |
account for dimAround in fullboundingbox
Diffstat (limited to 'src/Window.cpp')
| -rw-r--r-- | src/Window.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Window.cpp b/src/Window.cpp index a88e2b9b..9cf59287 100644 --- a/src/Window.cpp +++ b/src/Window.cpp @@ -22,7 +22,12 @@ CWindow::~CWindow() { } wlr_box CWindow::getFullWindowBoundingBox() { - static auto* const PBORDERSIZE = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue; + static auto* const PBORDERSIZE = &g_pConfigManager->getConfigValuePtr("general:border_size")->intValue; + + if (m_sAdditionalConfigData.dimAround) { + const auto PMONITOR = g_pCompositor->getMonitorFromID(m_iMonitorID); + return {PMONITOR->vecPosition.x, PMONITOR->vecPosition.y, PMONITOR->vecSize.x, PMONITOR->vecSize.y}; + } SWindowDecorationExtents maxExtents = {{*PBORDERSIZE + 2, *PBORDERSIZE + 2}, {*PBORDERSIZE + 2, *PBORDERSIZE + 2}}; |
