diff options
author | Max Kellermann <max@duempel.org> | 2008-09-22 10:20:57 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-22 10:20:57 +0200 |
commit | 32f329d4efcbc8a1ce16af51e35392b1b6aa1326 (patch) | |
tree | d87c66c85cd79481f38ae711d1cfa4abd33c9279 /src/screen_play.c | |
parent | 8dd2f87a20e0c20fe5d59c991707c9a5dd60ca7c (diff) | |
download | mpd-32f329d4efcbc8a1ce16af51e35392b1b6aa1326.tar.gz mpd-32f329d4efcbc8a1ce16af51e35392b1b6aa1326.tar.xz mpd-32f329d4efcbc8a1ce16af51e35392b1b6aa1326.zip |
screen: don't set list_window->repaint
Several screens ignore the attribute list_window->repaint. Don't set
it there. It will be replaced with a more intelligent repaint
algorithm later.
Diffstat (limited to '')
-rw-r--r-- | src/screen_play.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/screen_play.c b/src/screen_play.c index 7c2dc426f..bea8e1253 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -71,7 +71,6 @@ playlist_changed_callback(mpdclient_t *c, int event, gpointer data) } /* make shure the playlist is repainted */ lw->clear = 1; - lw->repaint = 1; list_window_check_selected(lw, c->playlist.list->len); } @@ -145,7 +144,6 @@ save_post_completion_cb(mpd_unused GCompletion *gcmp, mpd_unused gchar *line, if( g_list_length(items)>=1 ) { screen_display_completion_list(screen, items); lw->clear = 1; - lw->repaint = 1; } } @@ -276,7 +274,6 @@ static void add_post_completion_cb(GCompletion *gcmp, gchar *line, { screen_display_completion_list(screen, items); lw->clear = 1; - lw->repaint = 1; } if( line && line[0] && line[strlen(line)-1]=='/' && @@ -410,10 +407,9 @@ play_update(screen_t *screen, mpdclient_t *c) play_paint(screen, c); playlist_id = c->playlist.id; - } else if( lw->repaint || 1) { + } else { list_window_paint(lw, list_callback, (void *) c); wnoutrefresh(lw->w); - lw->repaint = 0; } } @@ -477,7 +473,6 @@ play_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) case CMD_SCREEN_UPDATE: screen->painted = 0; lw->clear = 1; - lw->repaint = 1; center_playing_item(c); return 1; case CMD_LIST_MOVE_UP: |