mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Remove commented code, break out of loop in when possible.
This commit is contained in:
parent
db51b8110c
commit
3e419feecd
1 changed files with 1 additions and 7 deletions
|
@ -877,12 +877,6 @@ Window create_window ( Display *display )
|
|||
Window box = XCreateWindow ( display, DefaultRootWindow ( display ),
|
||||
0, 0, 200, 100, config.menu_bw, vinfo.depth, InputOutput,
|
||||
vinfo.visual, CWColormap | CWBorderPixel | CWBackPixel, &attr );
|
||||
/*
|
||||
Window box = XCreateSimpleWindow ( display, root, 0, 0, 200, 100,
|
||||
config.menu_bw,
|
||||
color_get ( display, config.menu_bc ),
|
||||
color_get ( display, config.menu_bg ) );
|
||||
*/
|
||||
XSelectInput ( display, box, ExposureMask | ButtonPressMask );
|
||||
|
||||
gc = XCreateGC ( display, box, 0, 0 );
|
||||
|
@ -1335,9 +1329,9 @@ static void menu_mouse_navigation ( MenuState *state, XButtonEvent *xbe )
|
|||
*( state->selected_line ) = state->line_map[state->selected];
|
||||
// Quit
|
||||
state->quit = TRUE;
|
||||
break;
|
||||
}
|
||||
state->last_button_press = xbe->time;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue