forked from external/yambar
module/xwindow: log X errors
This commit is contained in:
parent
c5309abbd0
commit
bf558eca1b
1 changed files with 2 additions and 1 deletions
|
@ -52,6 +52,7 @@ update_active_window(struct private *m)
|
|||
xcb_get_property_reply_t *r = xcb_get_property_reply(m->conn, c, &e);
|
||||
|
||||
if (e != NULL) {
|
||||
LOG_ERR("failed to get active window ID: %s", xcb_error(e));
|
||||
free(e);
|
||||
free(r);
|
||||
return;
|
||||
|
@ -93,7 +94,7 @@ update_application(struct module *mod)
|
|||
xcb_get_property_reply_t *r = xcb_get_property_reply(m->conn, c, &e);
|
||||
|
||||
if (e != NULL) {
|
||||
LOG_ERR("failed to get _NET_WM_PID");
|
||||
LOG_ERR("failed to get _NET_WM_PID: %s", xcb_error(e));
|
||||
free(e);
|
||||
free(r);
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue