summaryrefslogtreecommitdiffstats
path: root/notify.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2012-09-25 17:05:36 +0100
committerThomas Adam <thomas@xteddy.org>2012-09-25 17:05:36 +0100
commit48750022c092396e1b9259119fcb9772d6e125f1 (patch)
tree4008645b8d49985039c27316106aa9fed3c36ee9 /notify.c
parentce0b285aad74bae8b7e4d8fff1b63749cf6ddf84 (diff)
parent17bbf90393a5599cfe82becdc5c29a7ad48012c4 (diff)
Merge branch 'obsd-master'
Sync from OpenBSD.
Diffstat (limited to 'notify.c')
-rw-r--r--notify.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/notify.c b/notify.c
index a173a9f9..bd5c7d83 100644
--- a/notify.c
+++ b/notify.c
@@ -132,6 +132,26 @@ notify_drain(void)
}
void
+notify_input(struct window_pane *wp, struct evbuffer *input)
+{
+ struct client *c;
+ u_int i;
+
+ /*
+ * notify_input() is not queued and only does anything when
+ * notifications are enabled.
+ */
+ if (!notify_enabled)
+ return;
+
+ for (i = 0; i < ARRAY_LENGTH(&clients); i++) {
+ c = ARRAY_ITEM(&clients, i);
+ if (c != NULL && (c->flags & CLIENT_CONTROL))
+ control_notify_input(c, wp, input);
+ }
+}
+
+void
notify_window_layout_changed(struct window *w)
{
notify_add(NOTIFY_WINDOW_LAYOUT_CHANGED, NULL, NULL, w);