aboutsummaryrefslogtreecommitdiff
path: root/src/win.c
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-09-28 10:20:49 +1000
committerallusive-dev <[email protected]>2023-09-28 10:20:49 +1000
commite24b8ed0b48138ceacb7715b9e267ee57db76535 (patch)
treec1d5d6a7d49d8ba18b16ba7720e225c58096c8a2 /src/win.c
parentUpdate README.md (diff)
downloadcompfy-e24b8ed0b48138ceacb7715b9e267ee57db76535.tar.xz
compfy-e24b8ed0b48138ceacb7715b9e267ee57db76535.zip
added animation exclude rule sets - update 0.30.30.2.2
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/win.c b/src/win.c
index 971bdc9..b37eb34 100644
--- a/src/win.c
+++ b/src/win.c
@@ -457,6 +457,10 @@ static void init_animation(session_t *ps, struct managed_win *w) {
animation = ps->o.animation_for_workspace_switch_in;
}
+ if (c2_match(ps, w, ps->o.animation_open_blacklist, NULL)) {
+ animation = OPEN_WINDOW_ANIMATION_NONE;
+ }
+
switch (animation) {
case OPEN_WINDOW_ANIMATION_AUTO:
case OPEN_WINDOW_ANIMATION_NONE: { // No animation
@@ -572,6 +576,10 @@ static void init_animation_unmap(session_t *ps, struct managed_win *w) {
animation = ps->o.wintype_option[w->window_type].animation_unmap;
}
+ if (c2_match(ps, w, ps->o.animation_unmap_blacklist, NULL)) {
+ animation = OPEN_WINDOW_ANIMATION_NONE;
+ }
+
if (ps->root_desktop_switch_direction != 0) {
if (ps->o.animation_for_workspace_switch_out == OPEN_WINDOW_ANIMATION_AUTO)
animation = OPEN_WINDOW_ANIMATION_SLIDE_OUT;