[general]: add more debug logs

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-12-04 01:07:14 +00:00
parent 2f2b0319d5
commit a7be1dc1ad
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
2 changed files with 8 additions and 2 deletions

View File

@ -205,11 +205,15 @@ static inline void get_screen_region(session_t *ps, region_t *res) {
void add_damage(session_t *ps, const region_t *damage) {
// Ignore damage when screen isn't redirected
if (!ps->redirected)
if (!ps->redirected) {
return;
}
if (!damage)
if (!damage) {
return;
}
log_trace("Adding damage: ");
dump_region(damage);
pixman_region32_union(ps->damage, ps->damage, (region_t *)damage);
}

View File

@ -434,6 +434,8 @@ void win_process_update_flags(session_t *ps, struct managed_win *w) {
// Whether the window was visible before we process the mapped flag. i.e. is the
// window just mapped.
bool was_visible = win_is_real_visible(w);
log_debug("Processing flags for window %#010x (%s), was visible: %d", w->base.id,
w->name, was_visible);
if (win_check_flags_all(w, WIN_FLAGS_MAPPED)) {
map_win_start(ps, w);