Backport/rewrites wmarquesr pt. 8
This commit is contained in:
parent
20c506fa26
commit
b280d25f8a
|
@ -892,16 +892,18 @@ static int menu_input_mouse_post_iterate(uint64_t *input_mouse,
|
||||||
unsigned header_height;
|
unsigned header_height;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
menu_input_t *menu_input = menu_input_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;
|
*input_mouse = MOUSE_ACTION_NONE;
|
||||||
|
|
||||||
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection);
|
menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection);
|
||||||
|
|
||||||
if (!settings->menu.mouse.enable
|
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
|| (settings->input.overlay_enable && input_overlay_is_alive())
|
check_overlay = check_overlay ||
|
||||||
|
(settings->input.overlay_enable && input_overlay_is_alive());
|
||||||
#endif
|
#endif
|
||||||
)
|
|
||||||
|
if (check_overlay)
|
||||||
{
|
{
|
||||||
menu_input->mouse.wheeldown = false;
|
menu_input->mouse.wheeldown = false;
|
||||||
menu_input->mouse.wheelup = false;
|
menu_input->mouse.wheelup = false;
|
||||||
|
|
Loading…
Reference in New Issue