aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_play.c')
-rw-r--r--src/screen_play.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 8258e18ae..555412905 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -64,7 +64,7 @@ playlist_repaint(struct mpdclient *c)
static void
playlist_repaint_if_active(struct mpdclient *c)
{
- if (get_cur_mode_id() == 0) /* XXX don't use the literal number */
+ if (screen_is_visible(&screen_playlist))
playlist_repaint(c);
}