Code

Moved cursor to main window (0,0) when idle
authorKalle Wallin <kaw@linux.se>
Sun, 28 Mar 2004 16:38:25 +0000 (16:38 +0000)
committerKalle Wallin <kaw@linux.se>
Sun, 28 Mar 2004 16:38:25 +0000 (16:38 +0000)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@523 09075e82-0dd4-0310-85a5-a0d7c8717e4f

screen.c

index 8d14376ff95c5650950f32023e1b7c605b68c0f8..3025d9a01f1718ba01b1e60b089772cd8ee320b4 100644 (file)
--- a/screen.c
+++ b/screen.c
@@ -347,7 +347,7 @@ screen_init(void)
                                       screen->main_window.cols,
                                       screen->main_window.rows );
 
-  leaveok(screen->main_window.w, TRUE);
+  //  leaveok(screen->main_window.w, TRUE); temporary disabled
   keypad(screen->main_window.w, TRUE);  
 
   /* create progress window */
@@ -408,6 +408,7 @@ screen_paint(mpd_client_t *c)
   paint_progress_window(c);
   paint_status_window(c);
   screen->painted = 1;
+  wmove(screen->main_window.w, 0, 0);  wnoutrefresh(screen->main_window.w);
   doupdate();
 }
 
@@ -456,6 +457,7 @@ screen_update(mpd_client_t *c)
     }
   paint_progress_window(c);
   paint_status_window(c);
+  wmove(screen->main_window.w, 0, 0);   wnoutrefresh(screen->main_window.w);
   doupdate();
 }