From 4569a0747aa8891346e1115a7b8e9b656573bd00 Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Mon, 13 Mar 2023 12:37:30 +0100 Subject: [PATCH] fix executing xschem load_new_window from launcher (UI semaphore save/restore) --- src/callback.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/callback.c b/src/callback.c index a56fc28c..eb654d81 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1299,7 +1299,10 @@ int callback(const char *winpath, int event, int mx, int my, KeySym key, } if(key == 'h' && state==ControlMask ) /* go to http link */ { + int savesem = xctx->semaphore; + xctx->semaphore = 0; launcher(); + xctx->semaphore = savesem; break; } if(key == 'h' && state==Mod1Mask) /* create symbol pins from schematic pins 20171208 */ @@ -2781,7 +2784,10 @@ int callback(const char *winpath, int event, int mx, int my, KeySym key, draw_selection(xctx->gc[SELLAYER], 0); #endif if(sel && state == ControlMask) { + int savesem = xctx->semaphore; + xctx->semaphore = 0; launcher(); + xctx->semaphore = savesem; } if( !(state & ShiftMask) ) { if(tclgetboolvar("auto_hilight") && xctx->hilight_nets && sel == 0 ) {