Commit bb922df1 authored by Tinu Weber's avatar Tinu Weber

client_send_event: Return if the atom is not supported

Also explicitly ignore `e` in karuiwm/maprequest, to silence a compiler
warning.
parent 824aac47
......@@ -379,6 +379,10 @@ client_send_event(struct client *c, Atom atom)
++i)
if (supported_atoms[i] == atom)
is_supported = true;
if (!is_supported) {
warn("Atom %lu is not supported by %lu", atom, c->win);
return false;
}
XFree(supported_atoms);
ev.type = ClientMessage;
......
......@@ -590,6 +590,8 @@ maprequest(XEvent *e)
void
mappingnotify(XEvent *e)
{
(void) e;
debug("mappingnotify(%lu)", e->xmapping.window);
/* TODO */
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment