core: don't add damage in handle_new_windows

Since commit 95a64acf5a, fill_win doesn't
set the window geometry anymore, so we can't use it in
handle_new_windows.

However, we don't need to add damage in handle_new_windows anyway,
damage will be added later when the MAPPED flag is handled.

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-12-05 11:04:55 +00:00
parent 80b35806f1
commit ef9f09b68a
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 0 additions and 1 deletions

View File

@ -1386,7 +1386,6 @@ static void handle_new_windows(session_t *ps) {
// and created the damage handle. And there is no way for
// us to find out. So just blindly mark it damaged
mw->ever_damaged = true;
add_damage_from_win(ps, mw);
}
}
}