Consider mouse support when pausing and unpausing curses interface

This commit is contained in:
Andrzej Rybczak
2020-12-21 19:48:55 +01:00
parent f3fe45f3ff
commit def7ea42f6
2 changed files with 5 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
* Show the Visualizer immediately if it's the initial screen.
* Draw a separator between albums with the same name, but a different artist.
* Suppress output of all external commands.
* Consider mouse support when pausing and unpausing curses interface.
# ncmpcpp-0.9 (2020-12-20)
* Fix various Mopidy specific bugs.

View File

@@ -459,12 +459,16 @@ void initScreen(bool enable_colors, bool enable_mouse)
void pauseScreen()
{
if (Mouse::supportEnabled)
Mouse::disable();
def_prog_mode();
endwin();
}
void unpauseScreen()
{
if (Mouse::supportEnabled)
Mouse::enable();
refresh();
}