summaryrefslogtreecommitdiff
path: root/src/Window.cpp
diff options
context:
space:
mode:
authorthejch <66577496+thejch@users.noreply.github.com>2024-03-18 19:52:52 -0700
committerGitHub <noreply@github.com>2024-03-19 02:52:52 +0000
commite6532ba024762ba15423ae0a0935dfe4fb4196b1 (patch)
treee0b5ed767c2392da7c59783f9f8f101744356f07 /src/Window.cpp
parent7a31c954e5962db07b1b83e8a7340c38e7988ab6 (diff)
animations: Fix incorrect animation when manually moving a window when its being created (#5141)
* fix incorrect rendering when manually moving a window when its being created * add setAnimationsToMove
Diffstat (limited to 'src/Window.cpp')
-rw-r--r--src/Window.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Window.cpp b/src/Window.cpp
index 59ad5a3b..8130f017 100644
--- a/src/Window.cpp
+++ b/src/Window.cpp
@@ -389,6 +389,8 @@ void CWindow::moveToWorkspace(int workspaceID) {
const auto PWORKSPACE = g_pCompositor->getWorkspaceByID(m_iWorkspaceID);
+ setAnimationsToMove();
+
updateSpecialRenderData();
if (PWORKSPACE) {
@@ -1147,3 +1149,10 @@ bool CWindow::visibleOnMonitor(CMonitor* pMonitor) {
return wlr_output_layout_intersects(g_pCompositor->m_sWLROutputLayout, pMonitor->output, wbox.pWlr());
}
+
+void CWindow::setAnimationsToMove() {
+ auto* const PANIMCFG = g_pConfigManager->getAnimationPropertyConfig("windowsMove");
+ m_vRealPosition.setConfig(PANIMCFG);
+ m_vRealSize.setConfig(PANIMCFG);
+ m_bAnimatingIn = false;
+}