From da3ed55e4e4d2d3052b03df3dd0a40d19f99ea70 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 21 Jun 2013 15:28:02 -0400 Subject: devdraw: fix x11 input R=rsc https://codereview.appspot.com/10458043 --- src/cmd/devdraw/x11-itrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd') diff --git a/src/cmd/devdraw/x11-itrans.c b/src/cmd/devdraw/x11-itrans.c index 4eac847e..d84cdc8f 100644 --- a/src/cmd/devdraw/x11-itrans.c +++ b/src/cmd/devdraw/x11-itrans.c @@ -153,7 +153,7 @@ xtoplan9latin1(XEvent *e) Rune r; r = __xtoplan9kbd(e); - if(r < 0) + if(r == -1) return nil; return sendrune(r); } -- cgit v1.2.3