From 98fced78c456f546aafc2f937d0d5beec77039aa Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 17 Dec 2001 15:39:32 +0000 Subject: [w3m-dev 02667] From: Hironori Sakamoto --- terms.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'terms.c') diff --git a/terms.c b/terms.c index 17af0d4..302b592 100644 --- a/terms.c +++ b/terms.c @@ -1,4 +1,4 @@ -/* $Id: terms.c,v 1.24 2001/12/15 18:33:41 ukai Exp $ */ +/* $Id: terms.c,v 1.25 2001/12/17 15:39:32 ukai Exp $ */ /* * An original curses library for EUC-kanji by Akinori ITO, December 1989 * revised by Akinori ITO, January 1995 @@ -2013,7 +2013,7 @@ mouse_init() conn.defaultMask = 0; conn.maxMod = 0; conn.minMod = 0; - + r = Gpm_Open(&conn, 0); if (r == -2) { /* @@ -2024,7 +2024,7 @@ mouse_init() * passed through to the application. */ Gpm_Close(); - is_xterm = (NEED_XTERM_ON|NEED_XTERM_OFF); + is_xterm = (NEED_XTERM_ON | NEED_XTERM_OFF); } else if (r >= 0) { gpm_handler = gpm_process_mouse; @@ -2033,7 +2033,9 @@ mouse_init() if (is_xterm) { XTERM_ON; } +#ifdef SIGWINCH signal(SIGWINCH, resize_hook); +#endif mouseActive = 1; } -- cgit v1.2.3