]> git.neil.brown.name Git - edlib.git/commitdiff
input: don't use pane_notify to send window notification.
authorNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 06:54:41 +0000 (16:54 +1000)
committerNeilBrown <neil@brown.name>
Wed, 28 Jun 2023 07:51:41 +0000 (17:51 +1000)
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 <neil@brown.name>
lib-input.c

index 8e05905e770ab3d67809675682158730f8292340..1ef8525040aa7e907cb0dca5980123deb12bad50 100644 (file)
@@ -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) {