mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-22 12:25:38 +02:00
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);
|
xcb_get_property_reply_t *r = xcb_get_property_reply(m->conn, c, &e);
|
||||||
|
|
||||||
if (e != NULL) {
|
if (e != NULL) {
|
||||||
|
LOG_ERR("failed to get active window ID: %s", xcb_error(e));
|
||||||
free(e);
|
free(e);
|
||||||
free(r);
|
free(r);
|
||||||
return;
|
return;
|
||||||
|
@ -93,7 +94,7 @@ update_application(struct module *mod)
|
||||||
xcb_get_property_reply_t *r = xcb_get_property_reply(m->conn, c, &e);
|
xcb_get_property_reply_t *r = xcb_get_property_reply(m->conn, c, &e);
|
||||||
|
|
||||||
if (e != NULL) {
|
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(e);
|
||||||
free(r);
|
free(r);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue