ncmenu: correct item for mouse clicks on bottom menus #2582

pull/2610/head
nick black 2 years ago
parent ab5ba75535
commit 9757b118b1
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -673,7 +673,7 @@ const char* ncmenu_mouse_selected(const ncmenu* n, const ncinput* click,
return NULL;
}
}
const int itemidx = y - 2;
const int itemidx = y - (1 + !n->bottom);
if(sec->items[itemidx].disabled){
return NULL;
}

Loading…
Cancel
Save