fix executing xschem load_new_window from launcher (UI semaphore save/restore)

This commit is contained in:
stefan schippers 2023-03-13 12:37:30 +01:00
parent c38779fb35
commit 4569a0747a
1 changed files with 6 additions and 0 deletions

View File

@ -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 */ if(key == 'h' && state==ControlMask ) /* go to http link */
{ {
int savesem = xctx->semaphore;
xctx->semaphore = 0;
launcher(); launcher();
xctx->semaphore = savesem;
break; break;
} }
if(key == 'h' && state==Mod1Mask) /* create symbol pins from schematic pins 20171208 */ 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); draw_selection(xctx->gc[SELLAYER], 0);
#endif #endif
if(sel && state == ControlMask) { if(sel && state == ControlMask) {
int savesem = xctx->semaphore;
xctx->semaphore = 0;
launcher(); launcher();
xctx->semaphore = savesem;
} }
if( !(state & ShiftMask) ) { if( !(state & ShiftMask) ) {
if(tclgetboolvar("auto_hilight") && xctx->hilight_nets && sel == 0 ) { if(tclgetboolvar("auto_hilight") && xctx->hilight_nets && sel == 0 ) {