summaryrefslogtreecommitdiffstats
path: root/source/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/view.c')
-rw-r--r--source/view.c2
1 files changed, 1 insertions, 1 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 );
}