commit 9a01fc0dc55e6093d1f24a8d1321faca0d5fbe40
parent a6c3bd3af12eb01e51378753481d406eb9784b60
Author: ukai <ukai>
Date: Mon, 17 Dec 2001 15:39:32 +0000
[w3m-dev 02667]
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2001-12-18 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 02667]
+ * terms.c (mouse_init): #ifdef SIGWINCH guard
+
2001-12-16 Fumitoshi UKAI <ukai@debian.or.jp>
* [w3m-dev 02666] resizing on xterm with gpm support
diff --git a/terms.c b/terms.c
@@ -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;
}