Stop animating floating window movements.

This commit is contained in:
vaxerski 2021-11-24 18:53:56 +01:00
parent ad87629d51
commit aec53d2420

View file

@ -22,7 +22,7 @@ void AnimationUtil::move() {
for (auto& window : g_pWindowManager->windows) { for (auto& window : g_pWindowManager->windows) {
// check if window needs an animation. // check if window needs an animation.
if (ConfigManager::getInt("anim.enabled") == 0) { if (ConfigManager::getInt("anim.enabled") == 0 || window.getIsFloating()) {
// Disabled animations. instant warps. // Disabled animations. instant warps.
window.setRealPosition(window.getEffectivePosition()); window.setRealPosition(window.getEffectivePosition());
window.setRealSize(window.getEffectiveSize()); window.setRealSize(window.getEffectiveSize());