From 5ce2ef1529c29972173a6a964bbd8b4954d18f29 Mon Sep 17 00:00:00 2001 From: Jeffrey Middleton Date: Thu, 5 Mar 2009 16:43:13 -0600 Subject: [PATCH] screen_play: Disable auto-center while in visual selection mode Visual selection mode is a good sign the user is looking at whatever's on the screen. Especially if MPD is in random mode, suddenly jumping somewhere else is a bad plan. --- src/screen_play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen_play.c b/src/screen_play.c index c69f64c..f668757 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -498,7 +498,7 @@ play_update(mpdclient_t *c) prev_song_id = current_song_id; /* center the cursor */ - if (options.auto_center && current_song_id != -1) + if (options.auto_center && current_song_id != -1 && ! lw->visual_selection) center_playing_item(c); playlist_repaint(); -- 2.30.2