mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-03 04:23:42 -05:00
parent
e689f2d98b
commit
d9def87930
1 changed files with 9 additions and 5 deletions
|
@ -1457,16 +1457,20 @@ void rofi_view_frame_callback ( void )
|
||||||
|
|
||||||
static int rofi_view_calculate_height ( RofiViewState *state )
|
static int rofi_view_calculate_height ( RofiViewState *state )
|
||||||
{
|
{
|
||||||
unsigned int height = 0;
|
|
||||||
if ( CacheState.fullscreen == TRUE ) {
|
if ( CacheState.fullscreen == TRUE ) {
|
||||||
height = CacheState.mon.h;
|
return CacheState.mon.h;
|
||||||
return height;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
widget *main_window = WIDGET ( state->main_window );
|
RofiDistance h = rofi_theme_get_distance ( WIDGET ( state->main_window ), "height", 0 );
|
||||||
height = widget_get_desired_height ( main_window );
|
unsigned int height = distance_get_pixel ( h, ROFI_ORIENTATION_VERTICAL );
|
||||||
|
// If height is set, return it.
|
||||||
|
if ( height > 0 ) {
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
// Autosize based on widgets.
|
||||||
|
widget *main_window = WIDGET ( state->main_window );
|
||||||
|
return widget_get_desired_height ( main_window );
|
||||||
|
}
|
||||||
|
|
||||||
static WidgetTriggerActionResult textbox_sidebar_modi_trigger_action ( widget *wid, MouseBindingMouseDefaultAction action, G_GNUC_UNUSED gint x, G_GNUC_UNUSED gint y, G_GNUC_UNUSED void *user_data )
|
static WidgetTriggerActionResult textbox_sidebar_modi_trigger_action ( widget *wid, MouseBindingMouseDefaultAction action, G_GNUC_UNUSED gint x, G_GNUC_UNUSED gint y, G_GNUC_UNUSED void *user_data )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue