From 65ef24d9d6b67353ff2b0ae32b536f22431f69bf Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 14 Apr 2026 07:26:45 +0000 Subject: [PATCH] Include window bits for pane notifications, GitHub issue 5007 from Saul Nogueras. --- usr.bin/tmux/notify.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/notify.c b/usr.bin/tmux/notify.c index c019d7240aa..bd1c8fda784 100644 --- a/usr.bin/tmux/notify.c +++ b/usr.bin/tmux/notify.c @@ -1,4 +1,4 @@ -/* $OpenBSD: notify.c,v 1.44 2023/06/30 13:19:32 nicm Exp $ */ +/* $OpenBSD: notify.c,v 1.45 2026/04/14 07:26:45 nicm Exp $ */ /* * Copyright (c) 2012 George Nachman @@ -209,8 +209,12 @@ notify_add(const char *name, struct cmd_find_state *fs, struct client *c, format_add(ne->formats, "hook_window", "@%u", w->id); format_add(ne->formats, "hook_window_name", "%s", w->name); } - if (wp != NULL) + if (wp != NULL) { format_add(ne->formats, "hook_pane", "%%%d", wp->id); + format_add(ne->formats, "hook_window", "@%u", wp->window->id); + format_add(ne->formats, "hook_window_name", "%s", + wp->window->name); + } format_log_debug(ne->formats, __func__); if (c != NULL)