mirror of
https://github.com/lbonn/rofi
synced 2024-11-15 00:27:36 +00:00
small cleanup error_dialog, remove dummy calc
This commit is contained in:
parent
bdeceaa35b
commit
562ace6b78
1 changed files with 2 additions and 6 deletions
|
@ -1704,11 +1704,7 @@ void error_dialog ( char *msg )
|
||||||
int line_height = textbox_get_height ( state.text );
|
int line_height = textbox_get_height ( state.text );
|
||||||
|
|
||||||
// resize window vertically to suit
|
// resize window vertically to suit
|
||||||
// Subtract the margin of the last row.
|
state.h = line_height + ( config.padding ) * 2;
|
||||||
state.h = line_height * ( state.max_rows + 1 ) + ( config.padding ) * 2 + LINE_MARGIN;
|
|
||||||
if ( config.hmode == TRUE ) {
|
|
||||||
state.h = line_height + ( config.padding ) * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Move the window to the correct x,y position.
|
// Move the window to the correct x,y position.
|
||||||
calculate_window_position ( &state, &mon );
|
calculate_window_position ( &state, &mon );
|
||||||
|
@ -1747,8 +1743,8 @@ void error_dialog ( char *msg )
|
||||||
}
|
}
|
||||||
release_keyboard ();
|
release_keyboard ();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SwitcherMode run_switcher_window ( char **input, G_GNUC_UNUSED void *data )
|
SwitcherMode run_switcher_window ( char **input, G_GNUC_UNUSED void *data )
|
||||||
{
|
{
|
||||||
Screen *screen = DefaultScreenOfDisplay ( display );
|
Screen *screen = DefaultScreenOfDisplay ( display );
|
||||||
|
|
Loading…
Reference in a new issue