1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-03 04:23:42 -05:00

Mouse navigation: Avoid unnecessary looping.

This commit is contained in:
Edwin Pujols 2015-01-14 18:54:37 -04:00
parent 2d18aea928
commit dc16033d0d

View file

@ -1216,7 +1216,7 @@ static void menu_mouse_navigation ( MenuState *state, XButtonEvent *xbe )
if ( ( xbe->window ) == ( state->boxes[i]->window ) ) {
// Only allow items that are visible to be selected.
if ( ( state->last_offset + i ) >= state->filtered_lines ) {
continue;
break;
}
//
state->selected = state->last_offset + i;