mirror of
https://github.com/davatorium/rofi.git
synced 2025-01-27 15:25:24 -05:00
Always set size, to work better in floating window manager in normal window mode
This commit is contained in:
parent
f10b879cac
commit
1ee67e8bba
1 changed files with 7 additions and 10 deletions
|
@ -1084,16 +1084,13 @@ static void rofi_view_refilter ( RofiViewState *state )
|
|||
state->retv = MENU_OK;
|
||||
state->quit = TRUE;
|
||||
}
|
||||
|
||||
// Make sure we enable fixed num lines when in normal window mode.
|
||||
if ( ( CacheState.flags & MENU_NORMAL_WINDOW ) == 0 ) {
|
||||
int height = rofi_view_calculate_height ( state );
|
||||
if ( height != state->height ) {
|
||||
state->height = height;
|
||||
rofi_view_calculate_window_position ( state );
|
||||
rofi_view_window_update_size ( state );
|
||||
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Resize based on re-filter" );
|
||||
}
|
||||
// Size the window.
|
||||
int height = rofi_view_calculate_height ( state );
|
||||
if ( height != state->height ) {
|
||||
state->height = height;
|
||||
rofi_view_calculate_window_position ( state );
|
||||
rofi_view_window_update_size ( state );
|
||||
g_log ( LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Resize based on re-filter" );
|
||||
}
|
||||
state->refilter = FALSE;
|
||||
TICK_N ( "Filter done" );
|
||||
|
|
Loading…
Add table
Reference in a new issue