mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '3208_gpm_connect_attempt'
* 3208_gpm_connect_attempt: Ticket #3208: fix failed gpm connect for vc /dev/tty0.
This commit is contained in:
commit
5389e3fc8e
@ -2091,14 +2091,13 @@ tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block)
|
||||
*event = ev;
|
||||
return EV_MOUSE;
|
||||
}
|
||||
else if (status == 0) /* connection closed; -1 == error */
|
||||
else if (status <= 0) /* connection closed; -1 == error */
|
||||
{
|
||||
if (mouse_fd >= 0 && FD_ISSET (mouse_fd, &select_set))
|
||||
FD_CLR (mouse_fd, &select_set);
|
||||
|
||||
/* Try to reopen gpm_mouse connection */
|
||||
disable_mouse ();
|
||||
enable_mouse ();
|
||||
return EV_NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user