Skip to content

Commit

Permalink
config: disable borderangle by default (#9165)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma authored Jan 25, 2025
1 parent 065e896 commit 107723b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/config/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,7 @@ void CConfigManager::setDefaultAnimationVars() {
// init the root nodes
m_AnimationTree.setConfigForNode("global", 1, 8.f, "", "default");
m_AnimationTree.setConfigForNode("__internal_fadeCTM", 1, 5.f, "", "linear");
m_AnimationTree.setConfigForNode("borderangle", 0, 0.f, "", "default");
}

std::optional<std::string> CConfigManager::resetHLConfig() {
Expand Down
8 changes: 5 additions & 3 deletions src/desktop/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,9 +552,11 @@ void CWindow::onMap() {

m_fMovingFromWorkspaceAlpha->setValueAndWarp(1.F);

m_fBorderAngleAnimationProgress->setValueAndWarp(0.f);
m_fBorderAngleAnimationProgress->setCallbackOnEnd([&](WP<CBaseAnimatedVariable> p) { onBorderAngleAnimEnd(p); }, false);
*m_fBorderAngleAnimationProgress = 1.f;
if (m_fBorderAngleAnimationProgress->enabled()) {
m_fBorderAngleAnimationProgress->setValueAndWarp(0.f);
m_fBorderAngleAnimationProgress->setCallbackOnEnd([&](WP<CBaseAnimatedVariable> p) { onBorderAngleAnimEnd(p); }, false);
*m_fBorderAngleAnimationProgress = 1.f;
}

m_fMovingFromWorkspaceAlpha->setValueAndWarp(1.F);

Expand Down

0 comments on commit 107723b

Please sign in to comment.