diff options
Diffstat (limited to '')
-rw-r--r-- | src/screen_artist.c | 3 | ||||
-rw-r--r-- | src/screen_file.c | 3 | ||||
-rw-r--r-- | src/screen_search.c | 3 |
3 files changed, 6 insertions, 3 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; } diff --git a/src/screen_file.c b/src/screen_file.c index 0c24af25d..aabac7afa 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -266,7 +266,8 @@ browse_cmd(mpdclient_t *c, command_t cmd) } if (browser_cmd(&browser, c, cmd)) { - file_repaint(); + if (screen_is_visible(&screen_browse)) + file_repaint(); return 1; } diff --git a/src/screen_search.c b/src/screen_search.c index 48afb4e51..e5239b0c7 100644 --- a/src/screen_search.c +++ b/src/screen_search.c @@ -450,7 +450,8 @@ search_cmd(mpdclient_t *c, command_t cmd) if (browser.filelist != NULL && browser_cmd(&browser, c, cmd)) { - search_repaint(); + if (screen_is_visible(&screen_search)) + search_repaint(); return 1; } |