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:
parent
2d18aea928
commit
dc16033d0d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue