Consider mouse support when pausing and unpausing curses interface

master
Andrzej Rybczak 5 years ago
parent f3fe45f3ff
commit def7ea42f6
  1. 1
      CHANGELOG.md
  2. 4
      src/curses/window.cpp

@ -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.

@ -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();
}

Loading…
Cancel
Save