mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-10-29 11:48:42 +00:00
focus: avoid replaying anim on an unchanged window
This commit is contained in:
parent
f444ff0089
commit
39c2832102
@ -33,6 +33,13 @@ static void onFocusChange(PHLWINDOW window) {
|
||||
if (!window)
|
||||
return;
|
||||
|
||||
static PHLWINDOWREF lastWindow;
|
||||
|
||||
if (lastWindow == window)
|
||||
return;
|
||||
|
||||
lastWindow = window;
|
||||
|
||||
static const auto POPACITY = CConfigValue<Hyprlang::FLOAT>("plugin:hyprfocus:fade_opacity");
|
||||
static const auto PBOUNCE = CConfigValue<Hyprlang::FLOAT>("plugin:hyprfocus:bounce_strength");
|
||||
static const auto PSLIDE = CConfigValue<Hyprlang::FLOAT>("plugin:hyprfocus:slide_height");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user