comparison nnchat.c @ 320:42ddc8bda6a9

Sanitize RESIZE event.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 11 Jun 2011 06:42:06 +0300
parents b9127815c9aa
children 384d508d1df3
comparison
equal deleted inserted replaced
319:b9127815c9aa 320:42ddc8bda6a9
1566 1566
1567 switch (c) { 1567 switch (c) {
1568 #ifdef KEY_RESIZE 1568 #ifdef KEY_RESIZE
1569 case KEY_RESIZE: 1569 case KEY_RESIZE:
1570 resize_term(0, 0); 1570 resize_term(0, 0);
1571 erase();
1572 #ifdef PDCURSES
1573 timeout(SET_DELAY); 1571 timeout(SET_DELAY);
1574 #endif 1572
1575
1576 if (!initializeWindows()) { 1573 if (!initializeWindows()) {
1577 errorMsg("Error resizing curses chatWindows\n"); 1574 errorMsg("Error resizing curses chatWindows\n");
1578 isError = TRUE; 1575 isError = TRUE;
1579 } 1576 }
1580 1577
1581 update = TRUE; 1578 update = updateMain = TRUE;
1582 updateMain = TRUE;
1583 break; 1579 break;
1584 #endif 1580 #endif
1585 1581
1586 case KEY_ENTER: 1582 case KEY_ENTER:
1587 case '\n': 1583 case '\n':
1702 update = TRUE; 1698 update = TRUE;
1703 break; 1699 break;
1704 1700
1705 case 0x0c: /* Ctrl + L */ 1701 case 0x0c: /* Ctrl + L */
1706 updateWindows(); 1702 updateWindows();
1707 update = TRUE; 1703 update = updateMain = TRUE;
1708 updateMain = TRUE;
1709 break; 1704 break;
1710 1705
1711 case KEY_NPAGE: 1706 case KEY_NPAGE:
1712 case KEY_PPAGE: 1707 case KEY_PPAGE:
1713 if (currWin != NULL) 1708 if (currWin != NULL)