Code

screen_{file,artist,search}: repaint only if screen is visible
[ncmpc.git] / src / screen_artist.c
index c66ae53f99ed62595e3e5b512d96453e949c0b7c..74fd96c1aed9a755543d07d7f2fb6b27d89d5855 100644 (file)
@@ -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;
        }