Remove commented code, break out of loop in when possible.

This commit is contained in:
Dave Davenport 2015-01-23 09:12:48 +01:00
parent db51b8110c
commit 3e419feecd
1 changed files with 1 additions and 7 deletions

View File

@ -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;
}
}
}