From 9ea71218465781f2f009b392882cb3367e571b6a Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Fri, 23 Jun 2023 10:59:06 +0200 Subject: [PATCH] set pending_fullzoom=1 on additionally created tabs so will display correctly if xschem started deiconified (wm withdraw .) --- src/xinit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xinit.c b/src/xinit.c index 9b66dc42..9f21ba3c 100644 --- a/src/xinit.c +++ b/src/xinit.c @@ -1420,6 +1420,7 @@ static void switch_tab(int *window_count, const char *win_path) { int n; + dbg(1, "switch_tab(): win_path=%s\n", win_path); if(xctx->semaphore) return; /* some editing operation ongoing. do nothing */ if(!win_path) { dbg(0, "switch_tab(): no filename or window path given\n"); @@ -1622,6 +1623,7 @@ static void create_new_tab(int *window_count, const char *noconfirm, const char tclvareval("housekeeping_ctx", NULL); load_schematic(1,fname, 1, 1); zoom_full(1, 0, 1 + 2 * tclgetboolvar("zoom_full_center"), 0.97); /* draw */ + xctx->pending_fullzoom=1; } static void destroy_window(int *window_count, const char *win_path)