Skip to content

Commit

Permalink
WindowSwitcher: Respect animations key (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter committed Apr 11, 2023
1 parent b83a023 commit e0ef54c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Widgets/WindowSwitcher/WindowSwitcher.vala
Expand Up @@ -10,9 +10,9 @@ namespace Gala {
public class WindowSwitcher : Clutter.Actor {
public const int ICON_SIZE = 64;
public const int WRAPPER_PADDING = 12;
public const string CAPTION_FONT_NAME = "Inter";

private const string CAPTION_FONT_NAME = "Inter";
private const int MIN_OFFSET = 64;
private const int ANIMATION_DURATION = 200;

public bool opened { get; private set; default = false; }

Expand Down Expand Up @@ -317,7 +317,7 @@ namespace Gala {
}

save_easing_state ();
set_easing_duration (200);
set_easing_duration (wm.enable_animations ? ANIMATION_DURATION : 0);
opacity = show ? 255 : 0;
restore_easing_state ();

Expand Down

0 comments on commit e0ef54c

Please sign in to comment.