https://savannah.gnu.org/bugs/?17822
diff -Naur mc-4.6.1.orig/src/key.c mc-4.6.1/src/key.c
old
|
new
|
|
36 | 36 | #include "tty.h" |
37 | 37 | #include "mouse.h" |
38 | 38 | #include "key.h" |
| 39 | #include "layout.h" /* winch_flag */ |
39 | 40 | #include "main.h" |
40 | 41 | #include "win.h" |
41 | 42 | #include "cons.saver.h" |
… |
… |
|
1050 | 1051 | time_addr = NULL; |
1051 | 1052 | } |
1052 | 1053 | |
1053 | | if (!block) { |
| 1054 | if (!block || winch_flag) { |
1054 | 1055 | time_addr = &timeout; |
1055 | 1056 | timeout.tv_sec = 0; |
1056 | 1057 | timeout.tv_usec = 0; |
… |
… |
|
1067 | 1068 | if (flag == 0) { |
1068 | 1069 | if (redo_event) |
1069 | 1070 | return EV_MOUSE; |
1070 | | if (!block) |
| 1071 | if (!block || winch_flag) |
1071 | 1072 | return EV_NONE; |
1072 | 1073 | vfs_timeout_handler (); |
1073 | 1074 | } |
diff -Naur mc-4.6.1.orig/src/layout.c mc-4.6.1/src/layout.c
old
|
new
|
|
760 | 760 | void |
761 | 761 | change_screen_size (void) |
762 | 762 | { |
| 763 | winch_flag = 0; |
763 | 764 | #if defined(HAVE_SLANG) || NCURSES_VERSION_MAJOR >= 4 |
764 | 765 | #if defined TIOCGWINSZ |
765 | 766 | |
… |
… |
|
792 | 793 | touchwin (stdscr); |
793 | 794 | #endif /* TIOCGWINSZ */ |
794 | 795 | #endif /* defined(HAVE_SLANG) || NCURSES_VERSION_MAJOR >= 4 */ |
795 | | winch_flag = 0; |
796 | 796 | } |
797 | 797 | |
798 | 798 | static int ok_to_refresh = 1; |