在 DDE 上禁用自绘窗口动画 (#3701)

This commit is contained in:
Glavo 2025-03-05 16:01:48 +08:00 committed by GitHub
parent f4701c678e
commit f011a14798
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,8 +37,7 @@ public final class AnimationUtils {
}
private static final boolean ENABLED = !ConfigHolder.config().isAnimationDisabled();
private static final boolean PLAY_WINDOW_ANIMATION = ENABLED
&& (!OperatingSystem.CURRENT_OS.isLinuxOrBSD() || "DDE".equals(System.getenv("XDG_CURRENT_DESKTOP")));
private static final boolean PLAY_WINDOW_ANIMATION = ENABLED && !OperatingSystem.CURRENT_OS.isLinuxOrBSD();
public static boolean isAnimationEnabled() {
return ENABLED;