shithub: libacme

Download patch

ref: 9065ae4ede744de5178566b6c577611e36a89873
parent: 7609bab0c1a5ff4427d48a52cadcb69ad054e02d
author: james palmer <foura@biobuf.link>
date: Wed Jun 9 15:18:59 EDT 2021

forgot aeventsend

--- a/event.c
+++ b/event.c
@@ -88,3 +88,12 @@
 	e->flags |= flags;
 	return e->origin;
 }
+
+int
+aeventsend(AWin *w, AEvent *e)
+{
+	if(e->flags & 0x2)
+		return fprint(w->eventfd, "%c%c%d %d\n", e->origin, e->type, e->p, e->p);
+	else
+		return fprint(w->eventfd, "%c%c%d %d\n", e->origin, e->type, e->q0, e->q1);
+}