From: Jonathan Neuschäfer Date: Wed, 19 Oct 2011 20:53:06 +0000 (+0200) Subject: screen.c: re-enable the leaveok optimization X-Git-Tag: release-0.20~77 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6fe400778902be2277c4b49bdd93d74d6dfb170d;p=ncmpc.git screen.c: re-enable the leaveok optimization Of course only if we don't need the cursor. --- 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 */