From 5b0d3f8cb549d07a09dc297f3660c19ae3fdaf7a Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 26 Jan 2021 12:05:42 +0700 Subject: [PATCH] Use FD_CLR when disabling keyboard for SUNDISPLAY. (#299) In the old code (prior to b234064d), this was: ``` LispReadFds &= ~(1 << LispWindowFd); ``` This was inadvertently converted to `FD_SET`, but should have been `FD_CLR`. --- src/kbdsubrs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kbdsubrs.c b/src/kbdsubrs.c index 13d2375..950eb30 100644 --- a/src/kbdsubrs.c +++ b/src/kbdsubrs.c @@ -86,7 +86,7 @@ void KB_enable(LispPTR *args) /* args[0] : ON/OFF flag #endif /* DOS */ } else if (args[0] == NIL) { #ifdef SUNDISPLAY - FD_SET(LispWindowFd, &LispReadFds); + FD_CLR(LispWindowFd, &LispReadFds); #elif XWINDOW disable_Xkeyboard(currentdsp); #elif DOS