summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2022-01-28 17:46:45 +0100
committerTakashi Iwai <tiwai@suse.de>2022-01-28 17:46:45 +0100
commitc511b49bf697e05df4b0987d0fd81e3329f64ce6 (patch)
treeb906fe304a15933ef892227327f1153935efdf72
parent7245f63b2e4bb7caef68b8b3f89f06a20f9ae0c2 (diff)
downloadalsa-utils-c511b49bf697e05df4b0987d0fd81e3329f64ce6.tar.gz
alsamixer: Revert has_mouse() check
has_mouse() function of ncurses doesn't seem working reliably. Revert the previous change for addressing the regressions. Fixes: 31820c5f239f ("alsamixer: Check the availability of mouse") BugLink: https://github.com/alsa-project/alsa-utils/issues/139 Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--alsamixer/mainloop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alsamixer/mainloop.c b/alsamixer/mainloop.c
index cdbe28e..bf3f70d 100644
--- a/alsamixer/mainloop.c
+++ b/alsamixer/mainloop.c
@@ -50,8 +50,9 @@ void initialize_curses(bool use_color, bool use_mouse)
#endif
window_size_changed(); /* update screen_lines/cols */
init_colors(use_color);
- if (use_mouse && has_mouse())
+ if (use_mouse)
mousemask(ALL_MOUSE_EVENTS, NULL);
+
snd_lib_error_set_handler(black_hole_error_handler);
}