Ticket #117: 10939-resize.patch

File 10939-resize.patch, 1.3 KB (added by slavazanko, 15 years ago)
  • src/key.c

    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  
    3636#include "tty.h" 
    3737#include "mouse.h" 
    3838#include "key.h" 
     39#include "layout.h"     /* winch_flag */ 
    3940#include "main.h" 
    4041#include "win.h" 
    4142#include "cons.saver.h" 
     
    10501051                time_addr = NULL; 
    10511052        } 
    10521053 
    1053         if (!block) { 
     1054        if (!block || winch_flag) { 
    10541055            time_addr = &timeout; 
    10551056            timeout.tv_sec = 0; 
    10561057            timeout.tv_usec = 0; 
     
    10671068        if (flag == 0) { 
    10681069            if (redo_event) 
    10691070                return EV_MOUSE; 
    1070             if (!block) 
     1071            if (!block || winch_flag) 
    10711072                return EV_NONE; 
    10721073            vfs_timeout_handler (); 
    10731074        } 
  • src/layout.c

    diff -Naur mc-4.6.1.orig/src/layout.c mc-4.6.1/src/layout.c
    old new  
    760760void 
    761761change_screen_size (void) 
    762762{ 
     763    winch_flag = 0; 
    763764#if defined(HAVE_SLANG) || NCURSES_VERSION_MAJOR >= 4 
    764765#if defined TIOCGWINSZ 
    765766 
     
    792793    touchwin (stdscr); 
    793794#endif                          /* TIOCGWINSZ */ 
    794795#endif                          /* defined(HAVE_SLANG) || NCURSES_VERSION_MAJOR >= 4 */ 
    795     winch_flag = 0; 
    796796} 
    797797 
    798798static int ok_to_refresh = 1;