Consider mouse support when pausing and unpausing curses interface
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user