From 477b4bb37ef3bdf7187404188e834dd6c7080785 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 25 Sep 2025 19:37:03 +0200 Subject: [PATCH] some fixes about remembered window sizes --- src/xinit.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/xinit.c b/src/xinit.c index 8bdfadb1..2f4bcb0e 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -1181,8 +1181,8 @@ void toggle_fullscreen(const char *topwin) xctx->pending_fullzoom=1; 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 */ + * pending_fullzoom does not work on the last correct ConfigureNotify event, + * so we zoom_full() again */ } zoom_full(1, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97); /* draw */ } @@ -1692,6 +1692,7 @@ static void create_new_window(int *window_count, const char *win_path, const cha Tk_MakeWindowExist(Tk_NameToWindow(interp, window_path[n], mainwindow)); win_id = Tk_WindowId(Tk_NameToWindow(interp, window_path[n], mainwindow)); Tk_ChangeWindowAttributes(Tk_NameToWindow(interp, window_path[n], mainwindow), CWBackingStore, &winattr); + tclvareval("tkwait visibility ", toppath, NULL); } old_xctx = xctx; xctx = NULL; @@ -3195,7 +3196,7 @@ int Tcl_AppInit(Tcl_Interp *inter) } } else { - tcleval("update"); + tcleval("tkwait visibility .drw"); svg_draw(); } }