aboutsummaryrefslogtreecommitdiffstats
path: root/screen.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-31 14:05:43 +0000
committerKalle Wallin <kaw@linux.se>2004-03-31 14:05:43 +0000
commit97e594b4adea4b9b7605eafddf3bf920c86d4192 (patch)
tree14080fed41c64aa11404508a1a25ff481988604c /screen.c
parent0f19ec9cc112f1368ad267388ed07c02ae631076 (diff)
downloadmpd-97e594b4adea4b9b7605eafddf3bf920c86d4192.tar.gz
mpd-97e594b4adea4b9b7605eafddf3bf920c86d4192.tar.xz
mpd-97e594b4adea4b9b7605eafddf3bf920c86d4192.zip
Moved cursor to main window (selected_row,0) when idle.
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@556 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--screen.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/screen.c b/screen.c
index 30bf9f344..aabc6f033 100644
--- a/screen.c
+++ b/screen.c
@@ -417,6 +417,7 @@ screen_update(mpd_client_t *c)
{
static int repeat = -1;
static int random = -1;
+ list_window_t *lw = NULL;
if( !screen->painted )
return screen_paint(c);
@@ -441,10 +442,12 @@ screen_update(mpd_client_t *c)
case SCREEN_PLAY_WINDOW:
paint_top_window(TOP_HEADER_PLAY, c->status->volume, 0);
play_update(screen, c);
+ lw = screen->playlist;
break;
case SCREEN_FILE_WINDOW:
paint_top_window(file_get_header(c), c->status->volume, 0);
file_update(screen, c);
+ lw = screen->filelist;
break;
case SCREEN_SEARCH_WINDOW:
paint_top_window(TOP_HEADER_SEARCH, c->status->volume, 0);
@@ -453,11 +456,13 @@ screen_update(mpd_client_t *c)
case SCREEN_HELP_WINDOW:
paint_top_window(TOP_HEADER_HELP, c->status->volume, 0);
help_update(screen, c);
+ lw = screen->helplist;
break;
}
paint_progress_window(c);
paint_status_window(c);
- wmove(screen->main_window.w, 0, 0); wnoutrefresh(screen->main_window.w);
+ wmove(screen->main_window.w, LW_ROW(lw), 0);
+ wnoutrefresh(screen->main_window.w);
doupdate();
}