mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:55:41 +01:00
alsamixer: Check the availability of mouse
Let's check the availiabiy via has_mouse(). Otherwise the program aborts unexpectedly just focusing on my rxvt terminal :-( Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0fd3022e82
commit
31820c5f23
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ void initialize_curses(bool use_color, bool use_mouse)
|
|||
#endif
|
||||
window_size_changed(); /* update screen_lines/cols */
|
||||
init_colors(use_color);
|
||||
if (use_mouse)
|
||||
if (use_mouse && has_mouse())
|
||||
mousemask(ALL_MOUSE_EVENTS, NULL);
|
||||
snd_lib_error_set_handler(black_hole_error_handler);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue