1
1

* dlg.c (frontend_run_dlg): Allow terminating the dialog from

the idle handler.
From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
Call change_screen_size() regardless of ncurses version, and let
that function decide what to do.
Этот коммит содержится в:
Pavel Roskin 2002-09-29 18:51:32 +00:00
родитель 99800b2f24
Коммит 3cdf930ea6
2 изменённых файлов: 16 добавлений и 6 удалений

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

@ -1,3 +1,11 @@
2002-09-29 Pavel Roskin <proski@gnu.org>
* dlg.c (frontend_run_dlg): Allow terminating the dialog from
the idle handler.
From Jindrich Makovicka <makovick@KMLinux.fjfi.cvut.cz>
Call change_screen_size() regardless of ncurses version, and let
that function decide what to do.
2002-09-28 Pavel Roskin <proski@gnu.org>
* background.c (background_attention): Fix calling functions

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

@ -812,11 +812,9 @@ frontend_run_dlg (Dlg_head *h)
event.x = -1;
while (h->running) {
#if defined(HAVE_SLANG) || NCURSES_VERSION_MAJOR >= 4
/* It does not work with ncurses before 1.9.9g, it will break */
if (winch_flag)
change_screen_size ();
#endif
if (is_idle ()) {
if (idle_hook)
execute_hooks (idle_hook);
@ -824,6 +822,10 @@ frontend_run_dlg (Dlg_head *h)
while (h->send_idle_msg && is_idle ()) {
(*h->callback) (h, 0, DLG_IDLE);
}
/* Allow terminating the dialog from the idle handler */
if (!h->running)
break;
}
update_cursor (h);