hlfw.ca

x9dev

Download patch

ref: 5177fe99ecfc907fcdb134da7e19df356c13f76c
parent: 26264459b0a83614336dea8621f838da8544b453
author: halfwit <michaelmisch1985@gmail.com>
date: Sat Oct 10 07:37:19 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)