aboutsummaryrefslogtreecommitdiffstats
path: root/src/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/term.c')
-rw-r--r--src/term.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/term.c b/src/term.c
index 3fbc3c46c4d..6d6bfaf412f 100644
--- a/src/term.c
+++ b/src/term.c
@@ -3150,10 +3150,10 @@ Gpm-mouse can only be activated for one tty at a time. */)
3150} 3150}
3151 3151
3152void 3152void
3153close_gpm () 3153close_gpm (int fd)
3154{ 3154{
3155 if (gpm_fd >= 0) 3155 if (fd >= 0)
3156 delete_gpm_wait_descriptor (gpm_fd); 3156 delete_gpm_wait_descriptor (fd);
3157 while (Gpm_Close()); /* close all the stack */ 3157 while (Gpm_Close()); /* close all the stack */
3158 gpm_tty = NULL; 3158 gpm_tty = NULL;
3159} 3159}
@@ -3171,7 +3171,7 @@ DEFUN ("gpm-mouse-stop", Fgpm_mouse_stop, Sgpm_mouse_stop,
3171 if (!tty || gpm_tty != tty) 3171 if (!tty || gpm_tty != tty)
3172 return Qnil; /* Not activated on this terminal, nothing to do. */ 3172 return Qnil; /* Not activated on this terminal, nothing to do. */
3173 3173
3174 close_gpm (); 3174 close_gpm (gpm_fd);
3175 return Qnil; 3175 return Qnil;
3176} 3176}
3177#endif /* HAVE_GPM */ 3177#endif /* HAVE_GPM */