summaryrefslogtreecommitdiff
path: root/src/helpers/Monitor.cpp
diff options
context:
space:
mode:
authorItsOhen <TNordfeldt@gmail.com>2026-03-13 22:50:34 +0100
committerGitHub <noreply@github.com>2026-03-13 16:50:34 -0500
commitde3471b3356280e692109cea81e426b7222a8aea (patch)
treec7b454165cd9b198728958623849c32ff58634b3 /src/helpers/Monitor.cpp
parent2877ca2933a2f6e11512479b18e5d418b3e23da3 (diff)
config/workspacerule: add animation style (#13380)
Diffstat (limited to 'src/helpers/Monitor.cpp')
-rw-r--r--src/helpers/Monitor.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp
index 5eb73868..7e320b94 100644
--- a/src/helpers/Monitor.cpp
+++ b/src/helpers/Monitor.cpp
@@ -45,6 +45,7 @@
#include <hyprutils/utils/ScopeGuard.hpp>
#include <cstring>
#include <climits>
+#include <optional>
#include <ranges>
#include <vector>
#include <algorithm>
@@ -1364,9 +1365,10 @@ void CMonitor::changeWorkspace(const PHLWORKSPACE& pWorkspace, bool internal, bo
if (!internal) {
const auto ANIMTOLEFT = POLDWORKSPACE && (shouldWraparound(pWorkspace->m_id, POLDWORKSPACE->m_id) ^ (pWorkspace->m_id > POLDWORKSPACE->m_id));
+ const auto ANIMSTYLE = pWorkspace->m_animationStyle;
if (POLDWORKSPACE)
- g_pDesktopAnimationManager->startAnimation(POLDWORKSPACE, CDesktopAnimationManager::ANIMATION_TYPE_OUT, ANIMTOLEFT);
- g_pDesktopAnimationManager->startAnimation(pWorkspace, CDesktopAnimationManager::ANIMATION_TYPE_IN, ANIMTOLEFT);
+ g_pDesktopAnimationManager->startAnimation(POLDWORKSPACE, CDesktopAnimationManager::ANIMATION_TYPE_OUT, ANIMTOLEFT, false, ANIMSTYLE);
+ g_pDesktopAnimationManager->startAnimation(pWorkspace, CDesktopAnimationManager::ANIMATION_TYPE_IN, ANIMTOLEFT, false, ANIMSTYLE);
// move pinned windows
for (auto const& w : g_pCompositor->m_windows) {