Readjust window if new document has been opened

This commit is contained in:
Moritz Lipp 2012-03-25 20:31:19 +02:00
parent 7b0aab7404
commit fab515a42c

View File

@ -510,6 +510,10 @@ document_open(zathura_t* zathura, const char* path, const char* password)
free(file_uri);
/* adjust window */
girara_argument_t argument = { zathura->document->adjust_mode, NULL };
sc_adjust_window(zathura->ui.session, &argument, NULL, 0);
return true;
error_free: