Make the sidebar live in a proper independent window.
[apps/madmutt.git] / lib-ui / curs_main.c
index fa8327b..3fe1cd3 100644 (file)
@@ -499,7 +499,6 @@ int mutt_index_menu (void)
       if (menu->redraw & REDRAW_STATUS) {
         menu_status_line (buf, sizeof (buf), menu, NONULL (Status));
         CLEARLINE (option (OPTSTATUSONTOP) ? 0 : LINES - 2);
-        sidebar_draw_frames();
         SETCOLOR (MT_COLOR_STATUS);
         BKGDSET (MT_COLOR_STATUS);
         wmove(stdscr, option (OPTSTATUSONTOP) ? 0 : LINES - 2,SW);
@@ -531,16 +530,10 @@ int mutt_index_menu (void)
 
       if (SigWinch) {
         mutt_flushinp ();
-        mutt_resize_screen ();
+        ui_layout_resize();
         menu->redraw = REDRAW_FULL;
         menu->menu = MENU_MAIN;
-        SigWinch = 0;
         menu->top = 0;          /* so we scroll the right amount */
-        /*
-         * force a real complete redraw.  wclrtobot(stdscr) doesn't seem to be able
-         * to handle every case without this.
-         */
-        clearok (stdscr, TRUE);
         continue;
       }