summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 07:25:33 +0000
committernicm <nicm>2020-04-13 07:25:33 +0000
commit9cbe9675ea8a8efb01dcc5f267e6d5853b2cd58f (patch)
tree60971ed265c57e1bb43345b88e872181ff7ebb85 /notify.c
parentad38ef6ff43b5794f09911c1ae72f44bb6f0869f (diff)
Change so that the appropriate hooks for windows and panes belong to
pane/window options rather than all being session options. This is useful for example to create a pane that is automatically closed on some condition. From Anindya Mukherjee.
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/notify.c b/notify.c
index c91a4399..772b3e1f 100644
--- a/notify.c
+++ b/notify.c
@@ -76,6 +76,14 @@ notify_insert_hook(struct cmdq_item *item, struct notify_entry *ne)
else
oo = fs.s->options;
o = options_get(oo, ne->name);
+ if (o == NULL && fs.wp != NULL) {
+ oo = fs.wp->options;
+ o = options_get(oo, ne->name);
+ }
+ if (o == NULL && fs.wl != NULL) {
+ oo = fs.wl->window->options;
+ o = options_get(oo, ne->name);
+ }
if (o == NULL)
return;