1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

mouse: Write disable_mouse sequences only in xterm

This commit is contained in:
witekfl 2006-02-28 22:52:01 +01:00 committed by
parent 90c013cbd0
commit 0a8009c63a

View File

@ -76,7 +76,7 @@ disable_mouse(void)
int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */ int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */
unhandle_mouse(ditrm->mouse_h); unhandle_mouse(ditrm->mouse_h);
send_mouse_done_sequence(h); if (is_xterm()) send_mouse_done_sequence(h);
mouse_enabled = 0; mouse_enabled = 0;
} }
@ -86,7 +86,7 @@ enable_mouse(void)
{ {
int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */ 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); ditrm->mouse_h = handle_mouse(0, (void (*)(void *, unsigned char *, int)) itrm_queue_event, ditrm);
mouse_enabled = 1; mouse_enabled = 1;