win: add debug logging to win_update_screen

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

View File

@ -2327,6 +2327,9 @@ void win_update_screen(int nscreens, region_t *screens, struct managed_win *w) {
if (e->x1 <= w->g.x && e->y1 <= w->g.y && e->x2 >= w->g.x + w->widthb &&
e->y2 >= w->g.y + w->heightb) {
w->xinerama_scr = i;
log_debug("Window %#010x (%s), %dx%d+%dx%d, is on screen %d",
w->base.id, w->name, w->g.x, w->g.y, w->g.width,
w->g.height, i);
return;
}
}