From 0a8009c63a22accff35b8aeec08b76d35525af1f Mon Sep 17 00:00:00 2001 From: witekfl Date: Tue, 28 Feb 2006 22:52:01 +0100 Subject: [PATCH] mouse: Write disable_mouse sequences only in xterm --- src/terminal/mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal/mouse.c b/src/terminal/mouse.c index 6c99a14a4..e90e0fdab 100644 --- a/src/terminal/mouse.c +++ b/src/terminal/mouse.c @@ -76,7 +76,7 @@ disable_mouse(void) int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */ unhandle_mouse(ditrm->mouse_h); - send_mouse_done_sequence(h); + if (is_xterm()) send_mouse_done_sequence(h); mouse_enabled = 0; } @@ -86,7 +86,7 @@ enable_mouse(void) { int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */ - send_mouse_init_sequence(h); + if (is_xterm()) send_mouse_init_sequence(h); ditrm->mouse_h = handle_mouse(0, (void (*)(void *, unsigned char *, int)) itrm_queue_event, ditrm); mouse_enabled = 1;