Backport/rewrites wmarquesr pt. 8

This commit is contained in:
twinaphex 2015-12-04 11:06:33 +01:00
parent 20c506fa26
commit b280d25f8a

View File

@ -892,16 +892,18 @@ static int menu_input_mouse_post_iterate(uint64_t *input_mouse,
unsigned header_height;
settings_t *settings = config_get_ptr();
menu_input_t *menu_input = menu_input_get_ptr();
bool check_overlay = settings ? !settings->menu.mouse.enable: false;
*input_mouse = MOUSE_ACTION_NONE;
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection);
if (!settings->menu.mouse.enable
#ifdef HAVE_OVERLAY
|| (settings->input.overlay_enable && input_overlay_is_alive())
check_overlay = check_overlay ||
(settings->input.overlay_enable && input_overlay_is_alive());
#endif
)
if (check_overlay)
{
menu_input->mouse.wheeldown = false;
menu_input->mouse.wheelup = false;