summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/view.c2
-rw-r--r--source/widgets/listview.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/view.c b/source/view.c
index 78625675..2b9b9a87 100644
--- a/source/view.c
+++ b/source/view.c
@@ -877,7 +877,7 @@ static void rofi_view_calculate_window_width ( RofiViewState *state )
return;
}
// Use theme configured width, if set.
- RofiDistance width = rofi_theme_get_distance ( WIDGET ( state->main_window ), "width", state->width );
+ RofiDistance width = rofi_theme_get_distance ( WIDGET ( state->main_window ), "width", CacheState.mon.w/2 );
state->width = distance_get_pixel ( width, ROFI_ORIENTATION_HORIZONTAL );
}
diff --git a/source/widgets/listview.c b/source/widgets/listview.c
index b784ab92..98f2873c 100644
--- a/source/widgets/listview.c
+++ b/source/widgets/listview.c
@@ -676,7 +676,7 @@ listview *listview_create ( widget *parent, const char *name, listview_update_ca
// Some settings.
lv->spacing = rofi_theme_get_distance ( WIDGET ( lv ), "spacing", DEFAULT_SPACING );
lv->menu_columns = rofi_theme_get_integer ( WIDGET ( lv ), "columns", 1 );
- lv->fixed_num_lines = rofi_theme_get_boolean ( WIDGET ( lv ), "fixed-height", FALSE );
+ lv->fixed_num_lines = rofi_theme_get_boolean ( WIDGET ( lv ), "fixed-height", TRUE );
lv->dynamic = rofi_theme_get_boolean ( WIDGET ( lv ), "dynamic", TRUE );
lv->reverse = rofi_theme_get_boolean ( WIDGET ( lv ), "reverse", reverse );
lv->cycle = rofi_theme_get_boolean ( WIDGET ( lv ), "cycle", config.cycle );