Code

keyboard: move code to ignore_key()
[ncmpc.git] / src / screen.c
index b6f63007e6eea1b7a0add973c5c13a3f239b93a0..0a056a866ec29ba266711eea5bc4c7044ac44885 100644 (file)
@@ -219,16 +219,13 @@ screen_resize(struct mpdclient *c)
        screen.main_window.cols = screen.cols;
        screen.main_window.rows = screen.rows-4;
        wresize(screen.main_window.w, screen.main_window.rows, screen.cols);
-       wclear(screen.main_window.w);
 
        /* progress window */
        progress_bar_resize(&screen.progress_bar, screen.cols,
                            screen.rows - 2, 0);
-       progress_bar_paint(&screen.progress_bar);
 
        /* status window */
        status_bar_resize(&screen.status_bar, screen.cols, screen.rows - 1, 0);
-       status_bar_paint(&screen.status_bar, c->status, c->song);
 
        screen.buf_size = screen.cols;
        g_free(screen.buf);
@@ -250,9 +247,7 @@ welcome_timer_callback(gpointer data)
 {
        struct mpdclient *c = data;
 
-#ifndef NCMPC_MINI
        screen.welcome_source_id = 0;
-#endif
 
        paint_top_window(mode_fn->get_title != NULL
                         ? mode_fn->get_title(screen.buf, screen.buf_size)