Skip to content

Commit

Permalink
Do not overwrite w->fade from w->fade_last with no_fading_openclose
Browse files Browse the repository at this point in the history
Fixes: chjj#245
  • Loading branch information
blueyed committed Nov 13, 2014
1 parent 651a661 commit c04aa30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compton.c
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,9 @@ paint_preprocess(session_t *ps, win *list) {
// Restore flags from last paint if the window is being faded out
if (IsUnmapped == w->a.map_state) {
win_set_shadow(ps, w, w->shadow_last);
w->fade = w->fade_last;
if (!ps->o.no_fading_openclose || !w->in_openclose) {
w->fade = w->fade_last;
}
win_set_invert_color(ps, w, w->invert_color_last);
win_set_blur_background(ps, w, w->blur_background_last);
}
Expand Down

0 comments on commit c04aa30

Please sign in to comment.