aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/screen.c2
-rw-r--r--src/screen.h2
-rw-r--r--src/screen_play.c6
3 files changed, 6 insertions, 4 deletions
diff --git a/src/screen.c b/src/screen.c
index 785807c2b..e391a9d62 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -706,7 +706,7 @@ screen_update(mpdclient_t *c)
/* update the main window */
if (mode_fn->update != NULL)
- mode_fn->update(&screen, c);
+ mode_fn->update(c);
/* update progress window */
paint_progress_window(c);
diff --git a/src/screen.h b/src/screen.h
index 8c0a947a0..3ba5541fb 100644
--- a/src/screen.h
+++ b/src/screen.h
@@ -50,7 +50,7 @@ typedef void (*screen_open_fn_t)(struct screen *screen, mpdclient_t *c);
typedef void (*screen_close_fn_t)(void);
typedef void (*screen_resize_fn_t)(int cols, int rows);
typedef void (*screen_paint_fn_t)(mpdclient_t *c);
-typedef void (*screen_update_fn_t)(struct screen *screen, mpdclient_t *c);
+typedef void (*screen_update_fn_t)(mpdclient_t *c);
typedef int (*screen_cmd_fn_t)(struct screen *scr, mpdclient_t *c, command_t cmd);
typedef const char *(*screen_title_fn_t)(char *s, size_t size);
diff --git a/src/screen_play.c b/src/screen_play.c
index 757ead3a0..8258e18ae 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -366,9 +366,11 @@ play_open(mpd_unused screen_t *screen, mpdclient_t *c)
static gboolean install_cb = TRUE;
assert(timer_hide_cursor_id == 0);
- if (options.hide_cursor > 0)
+ if (options.hide_cursor > 0) {
+ lw->flags &= ~LW_HIDE_CURSOR;
timer_hide_cursor_id = g_timeout_add(options.hide_cursor * 1000,
timer_hide_cursor, c);
+ }
if (install_cb) {
mpdclient_install_playlist_callback(c, playlist_changed_callback);
@@ -416,7 +418,7 @@ play_paint(mpdclient_t *c)
}
static void
-play_update(mpd_unused screen_t *screen, mpdclient_t *c)
+play_update(mpdclient_t *c)
{
/* center the cursor */
if (options.auto_center) {