~foura/libacme

9065ae4ede744de5178566b6c577611e36a89873 — james palmer 5 months ago 7609bab
forgot aeventsend
1 files changed, 9 insertions(+), 0 deletions(-)

M event.c
M event.c => event.c +9 -0
@@ 88,3 88,12 @@ loop:
	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);
}