aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_artist.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-18 21:51:40 +0100
committerMax Kellermann <max@duempel.org>2008-11-18 21:51:40 +0100
commita094e912687b2e1078ee2808a049f94b15325b79 (patch)
treef58561dac47fd663a3b8ec9d635e28e7b44f776b /src/screen_artist.c
parente12ebb484bf369ea425e93521d99cc6813996e4e (diff)
downloadmpd-a094e912687b2e1078ee2808a049f94b15325b79.tar.gz
mpd-a094e912687b2e1078ee2808a049f94b15325b79.tar.xz
mpd-a094e912687b2e1078ee2808a049f94b15325b79.zip
screen_{file,artist,search}: repaint only if screen is visible
Don't repaint the screen after browser_cmd() if another screen has been selected meanwhile.
Diffstat (limited to '')
-rw-r--r--src/screen_artist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screen_artist.c b/src/screen_artist.c
index c66ae53f9..74fd96c1a 100644
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
@@ -663,7 +663,8 @@ artist_cmd(mpdclient_t *c, command_t cmd)
}
if (artist_lw_cmd(c, cmd)) {
- artist_repaint();
+ if (screen_is_visible(&screen_artist))
+ artist_repaint();
return 1;
}