summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authornicm <nicm>2017-08-30 10:33:57 +0000
committernicm <nicm>2017-08-30 10:33:57 +0000
commit17cf1b21c6c30a2d7b8cf7d9a29f495a9b01c475 (patch)
treec50c7f009ebdd188f6f3d9944190685dfc5e8402 /notify.c
parenta7d1ee5433825c6e09877751a751aa0d9bd27b0d (diff)
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
Thomas Sattler.
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/notify.c b/notify.c
index 9d3a91e3..0dc8c5cf 100644
--- a/notify.c
+++ b/notify.c
@@ -46,7 +46,7 @@ notify_hook(struct cmdq_item *item, struct notify_entry *ne)
cmd_find_clear_state(&fs, 0);
if (cmd_find_empty_state(&ne->fs) || !cmd_find_valid_state(&ne->fs))
- cmd_find_from_nothing(&fs);
+ cmd_find_from_nothing(&fs, 0);
else
cmd_find_copy_state(&fs, &ne->fs);
@@ -170,7 +170,7 @@ notify_client(const char *name, struct client *c)
{
struct cmd_find_state fs;
- cmd_find_from_client(&fs, c);
+ cmd_find_from_client(&fs, c, 0);
notify_add(name, &fs, c, NULL, NULL, NULL);
}
@@ -180,9 +180,9 @@ notify_session(const char *name, struct session *s)
struct cmd_find_state fs;
if (session_alive(s))
- cmd_find_from_session(&fs, s);
+ cmd_find_from_session(&fs, s, 0);
else
- cmd_find_from_nothing(&fs);
+ cmd_find_from_nothing(&fs, 0);
notify_add(name, &fs, NULL, s, NULL, NULL);
}
@@ -191,7 +191,7 @@ notify_winlink(const char *name, struct winlink *wl)
{
struct cmd_find_state fs;
- cmd_find_from_winlink(&fs, wl);
+ cmd_find_from_winlink(&fs, wl, 0);
notify_add(name, &fs, NULL, wl->session, wl->window, NULL);
}
@@ -200,7 +200,7 @@ notify_session_window(const char *name, struct session *s, struct window *w)
{
struct cmd_find_state fs;
- cmd_find_from_session_window(&fs, s, w);
+ cmd_find_from_session_window(&fs, s, w, 0);
notify_add(name, &fs, NULL, s, w, NULL);
}
@@ -209,7 +209,7 @@ notify_window(const char *name, struct window *w)
{
struct cmd_find_state fs;
- cmd_find_from_window(&fs, w);
+ cmd_find_from_window(&fs, w, 0);
notify_add(name, &fs, NULL, NULL, w, NULL);
}
@@ -218,6 +218,6 @@ notify_pane(const char *name, struct window_pane *wp)
{
struct cmd_find_state fs;
- cmd_find_from_pane(&fs, wp);
+ cmd_find_from_pane(&fs, wp, 0);
notify_add(name, &fs, NULL, NULL, NULL, wp);
}