fix ui problem when ctrl-clicking a launcher (drag_elements remained set)
This commit is contained in:
parent
bd2c65bc1a
commit
b205b4a496
|
|
@ -4359,6 +4359,7 @@ static void handle_button_release(int event, KeySym key, int state, int button,
|
|||
int savesem = xctx->semaphore;
|
||||
move_objects(ABORT, 0, 0.0, 0.0);
|
||||
unselect_all(1);
|
||||
xctx->drag_elements = 0; /* after ctrl-Button1Press on a launcher need to clear this */
|
||||
select_object(xctx->mousex, xctx->mousey, SELECTED, 0, NULL);
|
||||
rebuild_selected_array();
|
||||
xctx->semaphore = 0;
|
||||
|
|
|
|||
|
|
@ -2103,6 +2103,7 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
|||
my_snprintf(res, S(res), "semaphore=%d\n", xctx->semaphore); Tcl_AppendResult(interp, res, NULL);
|
||||
my_snprintf(res, S(res), "ui_state=%d\n", xctx->ui_state); Tcl_AppendResult(interp, res, NULL);
|
||||
my_snprintf(res, S(res), "ui_state2=%d\n", xctx->ui_state2); Tcl_AppendResult(interp, res, NULL);
|
||||
my_snprintf(res, S(res), "drag_elements=%d\n", xctx->drag_elements); Tcl_AppendResult(interp, res, NULL);
|
||||
my_snprintf(res, S(res), "last_command=%d\n", xctx->last_command); Tcl_AppendResult(interp, res, NULL);
|
||||
my_snprintf(res, S(res), "prep_net_structs=%d\n", xctx->prep_net_structs); Tcl_AppendResult(interp, res, NULL);
|
||||
my_snprintf(res, S(res), "prep_hi_structs=%d\n", xctx->prep_hi_structs); Tcl_AppendResult(interp, res, NULL);
|
||||
|
|
|
|||
Loading…
Reference in New Issue