Skip to content

Commit eeb324d

Browse files
author
chenyc
committed
animation: add animation exclude
1 parent c7b65a3 commit eeb324d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/win.c

+2-6
Original file line numberDiff line numberDiff line change
@@ -643,12 +643,8 @@ void win_process_update_flags(session_t *ps, struct managed_win *w) {
643643
add_damage_from_win(ps, w);
644644
}
645645

646-
// Ignore animations all together if set to none on window type basis
647-
if (ps->o.wintype_option[w->window_type].animation == 0) {
648-
w->g = w->pending_g;
649-
650-
// Update window geometry
651-
} else if (win_should_animate(ps, w)) {
646+
// Determine if a window should animate
647+
if (win_should_animate(ps, w)) {
652648
if (w->pending_g.y < 0 && w->g.y > 0 && abs(w->pending_g.y - w->g.y) >= w->pending_g.height)
653649
w->dwm_mask = ANIM_PREV_TAG;
654650
else if (w->pending_g.y > 0 && w->g.y < 0 && abs(w->pending_g.y - w->g.y) >= w->pending_g.height)

0 commit comments

Comments
 (0)