From 6fe400778902be2277c4b49bdd93d74d6dfb170d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jonathan=20Neusch=C3=A4fer?= Date: Wed, 19 Oct 2011 22:53:06 +0200 Subject: [PATCH] screen.c: re-enable the leaveok optimization Of course only if we don't need the cursor. --- src/screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index af8a19a..4d89758 100644 --- a/src/screen.c +++ b/src/screen.c @@ -290,7 +290,9 @@ screen_init(struct mpdclient *c) /* create main window */ window_init(&screen.main_window, screen.rows - 4, screen.cols, 2, 0); - // leaveok(screen.main_window.w, TRUE); temporary disabled + if (!options.hardware_cursor) + leaveok(screen.main_window.w, TRUE); + keypad(screen.main_window.w, TRUE); /* create progress window */ -- 2.30.2