Code

screen_play: Disable auto-center while in visual selection mode
authorJeffrey Middleton <jefromi@gmail.com>
Thu, 5 Mar 2009 22:43:13 +0000 (16:43 -0600)
committerJeffrey Middleton <jefromi@gmail.com>
Thu, 5 Mar 2009 19:15:58 +0000 (13:15 -0600)
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

index c69f64c220324264874c862a0dbef60e71e16187..f668757896d3fc81539a1f7eda79673c54f312c7 100644 (file)
@@ -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();