From b1a8ff5269e42088b1530ccacb52a55b60754578 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 2 Oct 2008 15:20:19 +0200 Subject: screen_lyrics: add screen_lyrics_switch() screen_lyrics_switch() opens the lyrics screen and displays the lyrics of the specified song. This way, the user may view the lyrics of any song in the database browser. --- src/screen_play.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/screen_play.c') diff --git a/src/screen_play.c b/src/screen_play.c index 1bc2034b8..67de5fa3e 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -528,6 +528,17 @@ play_cmd(screen_t *screen, mpdclient_t *c, command_t cmd) case CMD_MOUSE_EVENT: return handle_mouse_event(screen,c); + +#ifdef ENABLE_LYRICS_SCREEN + case CMD_SCREEN_LYRICS: + if (lw->selected < playlist_length(&c->playlist)) { + screen_lyrics_switch(c, playlist_get(&c->playlist, lw->selected)); + return 1; + } + + break; +#endif + default: break; } -- cgit v1.2.3