diff --git a/config.def.h b/config.def.h index 9840278..469e58d 100644 --- a/config.def.h +++ b/config.def.h @@ -41,6 +41,7 @@ static const char DEFAULT_TEXT[] = "[No Name]"; /* additional settings */ #define SHOW_SCROLLBARS 0 +#define ADJUST_OPEN ADJUST_BESTFIT /* shortcuts */ Shortcut shortcuts[] = { diff --git a/zathura.c b/zathura.c index e8f45e0..19c6483 100644 --- a/zathura.c +++ b/zathura.c @@ -2322,6 +2322,11 @@ int main(int argc, char* argv[]) cmd_open(2, &argv[1]); gtk_widget_show_all(GTK_WIDGET(Zathura.UI.window)); + + Argument arg; + arg.n = ADJUST_OPEN; + sc_adjust_window(&arg); + gtk_main(); return 0;