Code

screen.c: re-enable the leaveok optimization
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 19 Oct 2011 20:53:06 +0000 (22:53 +0200)
committerJonathan Neuschäfer <j.neuschaefer@gmx.net>
Wed, 19 Oct 2011 20:53:06 +0000 (22:53 +0200)
Of course only if we don't need the cursor.

src/screen.c

index af8a19a958c8dd59dc3531867380fa7b01d9626b..4d897581e5ea86138155dfe96eca7d175f329bc7 100644 (file)
@@ -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 */