1
1

* key.c (get_event): Check gpm_fd only if gpm is actually used.

* layout.c (done_screen): Move disable_mouse() call ...
* main.c (done_mc): ... here.
Этот коммит содержится в:
Pavel Roskin 2002-09-08 15:50:02 +00:00
родитель d2c8d076f9
Коммит 5d2757fb8d
4 изменённых файлов: 14 добавлений и 7 удалений

Просмотреть файл

@ -1,3 +1,9 @@
2002-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
* key.c (get_event): Check gpm_fd only if gpm is actually used.
* layout.c (done_screen): Move disable_mouse() call ...
* main.c (done_mc): ... here.
2002-09-08 Pavel Roskin <proski@gnu.org>
* view.c (init_growing_view): Avoid reporting the same error

Просмотреть файл

@ -714,13 +714,13 @@ get_event (Gpm_Event * event, int redo_event, int block)
maxfdp = max (add_selects (&select_set), input_fd);
#ifdef HAVE_LIBGPM
if (use_mouse_p == MOUSE_GPM) {
if (gpm_fd == -1) {
/* Connection to gpm broken, possibly gpm has died */
mouse_enabled = 0;
use_mouse_p = MOUSE_NONE;
break;
}
if (use_mouse_p == MOUSE_GPM) {
FD_SET (gpm_fd, &select_set);
maxfdp = max (maxfdp, gpm_fd);
}

Просмотреть файл

@ -615,7 +615,6 @@ void done_screen ()
clr_scr ();
reset_shell_mode ();
mc_noraw_mode ();
disable_mouse ();
keypad (stdscr, FALSE);
}

Просмотреть файл

@ -1621,6 +1621,8 @@ static void setup_dummy_mc (const char *file)
static void done_mc (void)
{
disable_mouse ();
done_menu ();
/* Setup shutdown