From: NeilBrown Date: Wed, 28 Jun 2023 06:54:41 +0000 (+1000) Subject: input: don't use pane_notify to send window notification. X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=ed79d1df5f0be988bdae0819be18d6b478843c61;p=edlib.git input: don't use pane_notify to send window notification. input can currently use pane_notify directly instead all calling window:notify:foo because it manages these notifications. But soon it won't, so call("window:notify:foo") like everyone else has too. Signed-off-by: NeilBrown --- diff --git a/lib-input.c b/lib-input.c index 8e05905e..1ef85250 100644 --- a/lib-input.c +++ b/lib-input.c @@ -225,7 +225,7 @@ DEF_CMD(keystroke) if (!ci->str) return Enoarg; - pane_notify("Keystroke-notify", ci->home, 0, NULL, ci->str); + call("window:notify:Keystroke-notify", ci->home, 0, NULL, ci->str); log_add(im, "K", ci->str); im->mode = strdup(""); @@ -290,8 +290,9 @@ DEF_CMD(mouse_event) if (!ci->str) return Enoarg; - pane_notify("Mouse-event-notify", ci->home, ci->num, NULL, ci->str, - ci->num2); + call("window:notify:Mouse-event-notify", ci->home, + ci->num, NULL, ci->str, + ci->num2); log_add(im, "M", ci->str); if (ci->num2 == 1) {