mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -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 ) ) {
|
if ( ( xbe->window ) == ( state->boxes[i]->window ) ) {
|
||||||
// Only allow items that are visible to be selected.
|
// Only allow items that are visible to be selected.
|
||||||
if ( ( state->last_offset + i ) >= state->filtered_lines ) {
|
if ( ( state->last_offset + i ) >= state->filtered_lines ) {
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
state->selected = state->last_offset + i;
|
state->selected = state->last_offset + i;
|
||||||
|
|
Loading…
Add table
Reference in a new issue