]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsamixer: Revert has_mouse() check
authorTakashi Iwai <tiwai@suse.de>
Fri, 28 Jan 2022 16:46:45 +0000 (17:46 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 28 Jan 2022 16:46:45 +0000 (17:46 +0100)
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>
alsamixer/mainloop.c

index cdbe28e390fd77cd1bb158512c21f3b9645a63b0..bf3f70defbaada70ea0b0719a05e25d23835bf7f 100644 (file)
@@ -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);
 }