From dc16033d0dfed8f221b7a2d8bd9d1b96dbf99d52 Mon Sep 17 00:00:00 2001 From: Edwin Pujols Date: Wed, 14 Jan 2015 18:54:37 -0400 Subject: Mouse navigation: Avoid unnecessary looping. --- source/rofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/rofi.c b/source/rofi.c index 51a40b9c..0e858eec 100644 --- a/source/rofi.c +++ b/source/rofi.c @@ -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; -- cgit v1.2.3