-/* $OpenBSD: alerts.c,v 1.16 2016/11/01 09:07:18 nicm Exp $ */
+/* $OpenBSD: alerts.c,v 1.17 2017/04/21 14:09:44 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com>
s = wl->session;
if (s->curw != wl) {
wl->flags |= WINLINK_BELL;
- notify_winlink("alert-bell", s, wl);
+ notify_winlink("alert-bell", wl);
}
if (s->flags & SESSION_ALERTED)
continue;
wl->flags |= WINLINK_ACTIVITY;
- notify_winlink("alert-activity", s, wl);
+ notify_winlink("alert-activity", wl);
if (s->flags & SESSION_ALERTED)
continue;
if (s->curw == wl)
continue;
wl->flags |= WINLINK_SILENCE;
- notify_winlink("alert-silence", s, wl);
+ notify_winlink("alert-silence", wl);
if (s->flags & SESSION_ALERTED)
continue;
-/* $OpenBSD: cmd-find.c,v 1.45 2017/04/21 14:01:19 nicm Exp $ */
+/* $OpenBSD: cmd-find.c,v 1.46 2017/04/21 14:09:44 nicm Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicholas.marriott@gmail.com>
/* Find state from a winlink. */
int
-cmd_find_from_winlink(struct cmd_find_state *fs, struct session *s,
- struct winlink *wl)
+cmd_find_from_winlink(struct cmd_find_state *fs, struct winlink *wl)
{
cmd_find_clear_state(fs, NULL, 0);
- fs->s = s;
+ fs->s = wl->session;
fs->wl = wl;
fs->w = wl->window;
fs->wp = wl->window->active;
-/* $OpenBSD: cmd-new-window.c,v 1.67 2017/03/08 13:36:12 nicm Exp $ */
+/* $OpenBSD: cmd-new-window.c,v 1.68 2017/04/21 14:09:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
if (to_free != NULL)
free((void *)to_free);
- cmd_find_from_winlink(&fs, s, wl);
+ cmd_find_from_winlink(&fs, wl);
hooks_insert(s->hooks, item, &fs, "after-new-window");
return (CMD_RETURN_NORMAL);
-/* $OpenBSD: notify.c,v 1.20 2017/01/11 14:56:44 nicm Exp $ */
+/* $OpenBSD: notify.c,v 1.21 2017/04/21 14:09:44 nicm Exp $ */
/*
* Copyright (c) 2012 George Nachman <tmux@georgester.com>
}
void
-notify_winlink(const char *name, struct session *s, struct winlink *wl)
+notify_winlink(const char *name, struct winlink *wl)
{
struct cmd_find_state fs;
- cmd_find_from_winlink(&fs, s, wl);
- notify_add(name, &fs, NULL, s, wl->window, NULL);
+ cmd_find_from_winlink(&fs, wl);
+ notify_add(name, &fs, NULL, wl->session, wl->window, NULL);
}
void
-/* $OpenBSD: tmux.h,v 1.745 2017/04/21 14:01:19 nicm Exp $ */
+/* $OpenBSD: tmux.h,v 1.746 2017/04/21 14:09:44 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
void notify_input(struct window_pane *, struct evbuffer *);
void notify_client(const char *, struct client *);
void notify_session(const char *, struct session *);
-void notify_winlink(const char *, struct session *, struct winlink *);
+void notify_winlink(const char *, struct winlink *);
void notify_session_window(const char *, struct session *, struct window *);
void notify_window(const char *, struct window *);
void notify_pane(const char *, struct window_pane *);
int cmd_find_from_session(struct cmd_find_state *,
struct session *);
int cmd_find_from_winlink(struct cmd_find_state *,
- struct session *, struct winlink *);
+ struct winlink *);
int cmd_find_from_session_window(struct cmd_find_state *,
struct session *, struct window *);
int cmd_find_from_window(struct cmd_find_state *, struct window *);