summaryrefslogtreecommitdiff
path: root/src/desktop/Window.cpp
diff options
context:
space:
mode:
authorzakk4223 <zakk@rsdio.com>2024-05-01 07:59:40 -0400
committerGitHub <noreply@github.com>2024-05-01 12:59:40 +0100
commitd2899a6c272d4619295543b5b4c77b40fa1934bf (patch)
treeeda41642576dc2ebe29c7cdc6a08a2250d8c7ff8 /src/desktop/Window.cpp
parented58cc4c31c21e09ee780d0df818afe935181cd9 (diff)
layout: Trigger layout recalcuation on deco position/size change (#5821)
* Trigger layout recalcuation on deco position/size change * Remove now unneeded code * Formatting
Diffstat (limited to 'src/desktop/Window.cpp')
-rw-r--r--src/desktop/Window.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp
index 3b6a15c3..333f43c3 100644
--- a/src/desktop/Window.cpp
+++ b/src/desktop/Window.cpp
@@ -184,7 +184,6 @@ SWindowDecorationExtents CWindow::getFullWindowReservedArea() {
}
void CWindow::updateWindowDecos() {
- bool recalc = false;
if (!m_bIsMapped || isHidden())
return;
@@ -193,8 +192,7 @@ void CWindow::updateWindowDecos() {
for (auto it = m_dWindowDecorations.begin(); it != m_dWindowDecorations.end(); it++) {
if (it->get() == wd) {
g_pDecorationPositioner->uncacheDecoration(it->get());
- it = m_dWindowDecorations.erase(it);
- recalc = true;
+ it = m_dWindowDecorations.erase(it);
if (it == m_dWindowDecorations.end())
break;
}
@@ -203,9 +201,6 @@ void CWindow::updateWindowDecos() {
g_pDecorationPositioner->onWindowUpdate(m_pSelf.lock());
- if (recalc)
- g_pLayoutManager->getCurrentLayout()->recalculateWindow(m_pSelf.lock());
-
m_vDecosToRemove.clear();
// make a copy because updateWindow can remove decos.