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.
|
* Show the Visualizer immediately if it's the initial screen.
|
||||||
* Draw a separator between albums with the same name, but a different artist.
|
* Draw a separator between albums with the same name, but a different artist.
|
||||||
* Suppress output of all external commands.
|
* Suppress output of all external commands.
|
||||||
|
* Consider mouse support when pausing and unpausing curses interface.
|
||||||
|
|
||||||
# ncmpcpp-0.9 (2020-12-20)
|
# ncmpcpp-0.9 (2020-12-20)
|
||||||
* Fix various Mopidy specific bugs.
|
* Fix various Mopidy specific bugs.
|
||||||
|
|||||||
@@ -459,12 +459,16 @@ void initScreen(bool enable_colors, bool enable_mouse)
|
|||||||
|
|
||||||
void pauseScreen()
|
void pauseScreen()
|
||||||
{
|
{
|
||||||
|
if (Mouse::supportEnabled)
|
||||||
|
Mouse::disable();
|
||||||
def_prog_mode();
|
def_prog_mode();
|
||||||
endwin();
|
endwin();
|
||||||
}
|
}
|
||||||
|
|
||||||
void unpauseScreen()
|
void unpauseScreen()
|
||||||
{
|
{
|
||||||
|
if (Mouse::supportEnabled)
|
||||||
|
Mouse::enable();
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user