Skip to content

Commit

Permalink
Backport/rewrites wmarquesr pt. 7.5
Browse files Browse the repository at this point in the history
  • Loading branch information
inactive123 committed Dec 4, 2015
1 parent b280d25 commit fdfcbaa
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions menu/menu_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,18 +1031,20 @@ static int menu_input_pointer_post_iterate(menu_file_list_cbs_t *cbs,
int ret = 0;
menu_input_t *menu_input = menu_input_get_ptr();
settings_t *settings = config_get_ptr();
bool check_overlay = settings ? !settings->menu.pointer.enable : false;

if (!menu_input)
return -1;
if (!menu_navigation_ctl(MENU_NAVIGATION_CTL_GET_SELECTION, &selection))
return -1;
menu_display_ctl(MENU_DISPLAY_CTL_HEADER_HEIGHT, &header_height);

if (!settings->menu.pointer.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)
return 0;

if (menu_input->pointer.pressed[0])
Expand Down

0 comments on commit fdfcbaa

Please sign in to comment.