mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:16:00 +01:00
Keep the current page in sc_toogle_fullscreen (Closes: #134)
This commit is contained in:
parent
25fed48293
commit
ec2ec61463
1 changed files with 3 additions and 1 deletions
|
@ -786,6 +786,7 @@ sc_toggle_fullscreen(girara_session_t* session, girara_argument_t*
|
|||
/* reset scale */
|
||||
zathura->document->scale = zoom;
|
||||
render_all(zathura);
|
||||
page_set_delayed(zathura, zathura->document->current_page_number);
|
||||
} else {
|
||||
/* backup pages per row */
|
||||
girara_setting_get(session, "pages-per-row", &pages_per_row);
|
||||
|
@ -807,6 +808,7 @@ sc_toggle_fullscreen(girara_session_t* session, girara_argument_t*
|
|||
|
||||
/* set full screen */
|
||||
gtk_window_fullscreen(GTK_WINDOW(session->gtk.window));
|
||||
page_set_delayed(zathura, zathura->document->current_page_number);
|
||||
}
|
||||
|
||||
fullscreen = fullscreen ? false : true;
|
||||
|
|
Loading…
Reference in a new issue