Gpm_Close() is required.

closes: Debian Bug#120221: w3m-ssl: trashes terminal on exit
This commit is contained in:
Fumitoshi UKAI
2001-11-19 19:19:21 +00:00
parent 0ddaae19ab
commit 885fe74b2f
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2001-11-20 Fumitoshi UKAI <ukai@debian.or.jp>
* terms.c (mouse_init): Gpm_Close() is required.
closes: Debian Bug#120221: w3m-ssl: trashes terminal on exit
2001-11-20 Kiyokazu SUTO <suto@ks-and-ks.ne.jp> 2001-11-20 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* XMakefile (funcname1.h funcname2.h): sort as well as funcname.c * XMakefile (funcname1.h funcname2.h): sort as well as funcname.c

View File

@@ -1,4 +1,4 @@
/* $Id: terms.c,v 1.7 2001/11/19 08:17:13 ukai Exp $ */ /* $Id: terms.c,v 1.8 2001/11/19 19:19:21 ukai Exp $ */
/* /*
* An original curses library for EUC-kanji by Akinori ITO, December 1989 * An original curses library for EUC-kanji by Akinori ITO, December 1989
* revised by Akinori ITO, January 1995 * revised by Akinori ITO, January 1995
@@ -1728,7 +1728,11 @@ mouse_init()
/* /*
* If Gpm_Open() success, returns >= 0 * If Gpm_Open() success, returns >= 0
* Gpm_Open() returns -2 in case of xterm. * Gpm_Open() returns -2 in case of xterm.
* Gpm_Close() is necessary here. Otherwise,
* xterm is being left in the mode where the mouse clicks are
* passed through to the application.
*/ */
Gpm_Close();
is_xterm = 1; is_xterm = 1;
} else { } else {
gpm_handler = gpm_process_mouse; gpm_handler = gpm_process_mouse;