From 87937a5add7d7d020585a0322a7195e521c08811 Mon Sep 17 00:00:00 2001 From: Stefan Schippers Date: Wed, 14 Sep 2022 20:59:38 +0200 Subject: [PATCH] full zoom applied when going to true fullscreen --- src/xinit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xinit.c b/src/xinit.c index 6b3928ab..f7b1ff57 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -1062,12 +1062,13 @@ void toggle_fullscreen(const char *topwin) xctx->menu_removed=0; } if(fs == 1) { - window_state(display , parent_id,fullscr); + window_state(display , parent_id,fullscr); /* full screen with menus and toolbars */ } else if(fs == 2) { - window_state(display , parent_id,normal); + window_state(display , parent_id,normal); /* full screen, only drawing area */ window_state(display , parent_id,fullscr); + zoom_full(1, 0, 1, 0.97); /* draw */ } else { - window_state(display , parent_id,normal); + window_state(display , parent_id,normal); /* normal view */ /* when switching back from fullscreen multiple ConfigureNotify events are generated. * pending_fullzoom does not work on the last corect ConfigureNotify event, * so wee zoom_full() again */