ref: 26264459b0a83614336dea8621f838da8544b453
parent: 17c654481978e6eb0406b5f6e2418ea36d087b56
author: halfwit <michaelmisch1985@gmail.com>
date: Sat Oct 10 07:36:08 PDT 2020
Change back to pointer
--- a/keyboard.c
+++ b/keyboard.c
@@ -57,7 +57,7 @@
{
wchar_t rune;
- if (c9read(x9di.ctx, &x9di.keybd->tag, x9di.keybd->f, x9di.keybd->wroff, 1) != 1)
+ if (c9read(x9di.ctx, &x9di->keybd->tag, x9di->keybd->f, x9di->keybd->wroff, 1) != 1)
return 0;
rune = x9di.keybd->rdbuf[0];
--- a/mouse.c
+++ b/mouse.c
@@ -53,7 +53,7 @@
int n;
/* Magic numbers here are the size of a message from /dev/mouse and its offsets */
- if((n = c9read(x9di.ctx, &x9di.mouse->tag, x9di.mouse.f, x9di.mouse->wroff, 1 + 4 * 12)) <= 0)
+ if((n = c9read(x9di.ctx, &x9di->mouse->tag, x9di->mouse.f, x9di->mouse->wroff, 1 + 4 * 12)) <= 0)
return 0;
if (n != 1 + 4 * 12)