From b02d2a74a5e723cc867e099e747aa050cc7598cb Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Sun, 30 Nov 2014 13:23:10 -0600 Subject: Fix window fade in --- twin/compton-tde/compton.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'twin') diff --git a/twin/compton-tde/compton.c b/twin/compton-tde/compton.c index 4a78f7f8a..e30d3969f 100644 --- a/twin/compton-tde/compton.c +++ b/twin/compton-tde/compton.c @@ -2511,7 +2511,7 @@ map_win(session_t *ps, Window id) { XFlush(ps->dpy); /* This needs to be here since we don't get PropertyNotify when unmapped */ - w->opacity = wid_get_opacity_prop(ps, w->id, OPAQUE); + calc_opacity(ps, w); w->greyscale_blended_background = determine_window_transparency_filter_greyscale_blended(ps, id); w->show_root_tile = determine_window_transparent_to_desktop(ps, id); w->show_black_background = determine_window_transparent_to_black(ps, id); @@ -2562,10 +2562,6 @@ map_win(session_t *ps, Window id) { w->in_openclose = true; set_fade_callback(ps, w, finish_map_win, true); win_determine_fade(ps, w); - if (w->fade) { - // Make sure the new window fades in properly - w->opacity = 0; - } win_determine_blur_background(ps, w); -- cgit v1.2.3