diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-04-21 22:01:14 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-04-21 22:01:14 +0100 |
commit | fd13731049148d0205fa6ed1843041dad0573677 (patch) | |
tree | 7cfc3571a33e9332b95b0805522c19d0bf59de2a /notify.c | |
parent | 1f209ed030f9879d873d10341171889af08ae070 (diff) | |
parent | c68ceca8cd4294c2b9991aa1884d58258596868f (diff) | |
download | rtmux-fd13731049148d0205fa6ed1843041dad0573677.tar.gz rtmux-fd13731049148d0205fa6ed1843041dad0573677.tar.bz2 rtmux-fd13731049148d0205fa6ed1843041dad0573677.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'notify.c')
-rw-r--r-- | notify.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -43,9 +43,9 @@ notify_hook(struct cmdq_item *item, struct notify_entry *ne) struct session *s = ne->session; struct window *w = ne->window; - cmd_find_clear_state(&fs, NULL, 0); + cmd_find_clear_state(&fs, 0); if (cmd_find_empty_state(&ne->fs) || !cmd_find_valid_state(&ne->fs)) - cmd_find_current(&fs, item, CMD_FIND_QUIET); + cmd_find_from_nothing(&fs); else cmd_find_copy_state(&fs, &ne->fs); @@ -163,10 +163,7 @@ notify_client(const char *name, struct client *c) { struct cmd_find_state fs; - if (c->session != NULL) - cmd_find_from_session(&fs, c->session); - else - cmd_find_current(&fs, NULL, CMD_FIND_QUIET); + cmd_find_from_client(&fs, c); notify_add(name, &fs, c, NULL, NULL, NULL); } @@ -178,7 +175,7 @@ notify_session(const char *name, struct session *s) if (session_alive(s)) cmd_find_from_session(&fs, s); else - cmd_find_current(&fs, NULL, CMD_FIND_QUIET); + cmd_find_from_nothing(&fs); notify_add(name, &fs, NULL, s, NULL, NULL); } |