mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[mouse] Initialization of variable was not necessary.
This commit is contained in:
parent
8ba7176f81
commit
66c476a754
@ -74,12 +74,10 @@ static int mouse_enabled;
|
|||||||
void
|
void
|
||||||
disable_mouse(void)
|
disable_mouse(void)
|
||||||
{
|
{
|
||||||
int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */
|
|
||||||
|
|
||||||
if (!mouse_enabled) return;
|
if (!mouse_enabled) return;
|
||||||
|
|
||||||
unhandle_mouse(ditrm->mouse_h);
|
unhandle_mouse(ditrm->mouse_h);
|
||||||
if (is_xterm()) send_mouse_done_sequence(h);
|
if (is_xterm()) send_mouse_done_sequence(get_output_handle());
|
||||||
|
|
||||||
mouse_enabled = 0;
|
mouse_enabled = 0;
|
||||||
}
|
}
|
||||||
@ -87,14 +85,12 @@ disable_mouse(void)
|
|||||||
void
|
void
|
||||||
enable_mouse(void)
|
enable_mouse(void)
|
||||||
{
|
{
|
||||||
int h = get_output_handle(); /* XXX: Is this all right? -- Miciah */
|
|
||||||
|
|
||||||
if (get_opt_bool("ui.mouse_disable", NULL))
|
if (get_opt_bool("ui.mouse_disable", NULL))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mouse_enabled) return;
|
if (mouse_enabled) return;
|
||||||
|
|
||||||
if (is_xterm()) send_mouse_init_sequence(h);
|
if (is_xterm()) send_mouse_init_sequence(get_output_handle());
|
||||||
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user