win: mark_client: print slightly more info in error logs

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-04-11 16:00:36 +01:00
parent 8759fc6460
commit b063e9a3be
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 2 deletions

View File

@ -1014,9 +1014,9 @@ void win_mark_client(session_t *ps, struct managed_win *w, xcb_window_t client)
win_on_factor_change(ps, w);
auto r = xcb_get_window_attributes_reply(
ps->c, xcb_get_window_attributes(ps->c, w->client_win), NULL);
ps->c, xcb_get_window_attributes(ps->c, w->client_win), &e);
if (!r) {
log_error("Failed to get client window attributes");
log_error_x_error(e, "Failed to get client window attributes");
return;
}