diff options
author | Thomas Adam <thomas@xteddy.org> | 2016-10-17 00:01:11 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2016-10-17 00:01:11 +0100 |
commit | d54e990c4ffb576aa3d82306b970dc64bdd4cda6 (patch) | |
tree | 14657ab6804e8dcb4ee696afd823e19e46e0631f /alerts.c | |
parent | 1a6e696b08113ca17ee8e881844167cf94276846 (diff) | |
parent | fe106842c879c8f2d0419afba4f90ce0c62c5e80 (diff) | |
download | rtmux-d54e990c4ffb576aa3d82306b970dc64bdd4cda6.tar.gz rtmux-d54e990c4ffb576aa3d82306b970dc64bdd4cda6.tar.bz2 rtmux-d54e990c4ffb576aa3d82306b970dc64bdd4cda6.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'alerts.c')
-rw-r--r-- | alerts.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -75,17 +75,12 @@ alerts_callback(__unused int fd, __unused short events, __unused void *arg) static void alerts_run_hook(struct session *s, struct winlink *wl, int flags) { - struct cmd_find_state fs; - - if (cmd_find_from_winlink(&fs, s, wl) != 0) - return; - if (flags & WINDOW_BELL) - hooks_run(s->hooks, NULL, &fs, "alert-bell"); + notify_winlink("alert-bell", s, wl); if (flags & WINDOW_SILENCE) - hooks_run(s->hooks, NULL, &fs, "alert-silence"); + notify_winlink("alert-silence", s, wl); if (flags & WINDOW_ACTIVITY) - hooks_run(s->hooks, NULL, &fs, "alert-activity"); + notify_winlink("alert-activity", s, wl); } static int |