1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Fix #237 add none style to separator style

This commit is contained in:
Dave Davenport 2015-09-30 09:09:34 +02:00
parent aea2458575
commit 2d167e21d7
3 changed files with 29 additions and 27 deletions

View file

@ -873,6 +873,7 @@ static void menu_update ( MenuState *state )
( ( pixel & 0x000000FF ) >> 0 ) / 256.0,
( ( pixel & 0xFF000000 ) >> 24 ) / 256.0
);
if ( strcmp ( config.separator_style, "none" ) ) {
if ( strcmp ( config.separator_style, "dash" ) == 0 ) {
const double dashes[1] = { 4 };
cairo_set_dash ( d, dashes, 1, 0.0 );
@ -890,12 +891,13 @@ static void menu_update ( MenuState *state )
cairo_move_to ( d, 0, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
cairo_line_to ( d, state->w, state->h - state->line_height - ( config.padding ) * 1 - 1 - config.line_margin );
cairo_stroke ( d );
}
}
if ( config.sidebar_mode == TRUE ) {
for ( unsigned int j = 0; j < num_switchers; j++ ) {
textbox_draw ( switchers[j].tb, d );
}
}
state->update = FALSE;
// Draw to actual window.