diff --git a/src/picom.c b/src/picom.c index a394a309..439c624c 100644 --- a/src/picom.c +++ b/src/picom.c @@ -1346,10 +1346,7 @@ static void handle_new_windows(session_t *ps) { } auto mw = (struct managed_win *)new_w; if (mw->a.map_state == XCB_MAP_STATE_VIEWABLE) { - // Have to map immediately instead of queue window update - // because we need the window's extent right now. - // We can do this because we are in the critical section. - map_win_start(ps, mw); + win_set_flags(mw, WIN_FLAGS_MAPPED); // This window might be damaged before we called fill_win // and created the damage handle. And there is no way for