Use the notify name string instead of going via an enum and change

existing hooks to use notifys instead.
This commit is contained in:
nicm
2016-10-16 22:06:40 +00:00
parent d15d54c2c8
commit 41e633acf5
18 changed files with 113 additions and 136 deletions

View File

@ -292,7 +292,7 @@ server_client_detach(struct client *c, enum msgtype msgtype)
if (s == NULL)
return;
hooks_run(c->session->hooks, c, NULL, "client-detached");
notify_client("client-detached", c);
proc_send_s(c->peer, msgtype, s->name);
}
@ -1210,7 +1210,7 @@ server_client_dispatch(struct imsg *imsg, void *arg)
server_redraw_client(c);
}
if (c->session != NULL)
hooks_run(c->session->hooks, c, NULL, "client-resized");
notify_client("client-resized", c);
break;
case MSG_EXITING:
if (datalen != 0)