patch 8.1.1948: mouse doesn't work in Linux console
Problem: Mouse doesn't work in Linux console and causes 100% CPU. (James P.
Harvey)
Solution: Loop in WaitForCharOrMouse() when gpm_process_wanted is set.
(closes #4828)
diff --git a/src/os_unix.c b/src/os_unix.c
index d80fb1d..437b37a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -6007,10 +6007,11 @@
gpm_process_wanted = 0;
avail = RealWaitForChar(read_cmd_fd, msec,
&gpm_process_wanted, interrupted);
+ if (!avail && !gpm_process_wanted)
# else
avail = RealWaitForChar(read_cmd_fd, msec, NULL, interrupted);
-# endif
if (!avail)
+# endif
{
if (!ignore_input && input_available())
return 1;
diff --git a/src/version.c b/src/version.c
index 463d215..f9e0f7b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -762,6 +762,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1948,
+/**/
1947,
/**/
1946,