update schematic backannotation on cursor2 position if setting it numerically (Right button click on cursor)

This commit is contained in:
stefan schippers 2025-01-12 17:06:44 +01:00
parent 8da888a119
commit d05b7fa389
1 changed files with 8 additions and 1 deletions

View File

@ -598,6 +598,7 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
/* Numerically set cursor position *** DO NOT PUT AN `else if` BELOW *** */
if(xctx->graph_flags & 4) {
double logcursor, cursor;
int floaters = there_are_floaters();
if(r->flags & 4) { /* private_cursor */
const char *s = get_tok_value(r->prop_ptr, "cursor2_x", 0);
if(s[0]) {
@ -622,7 +623,13 @@ static int waves_callback(int event, int mx, int my, KeySym key, int button, int
}
event = 0; button = 0; /* avoid further processing ButtonPress that might set GRAPHPAN */
}
need_fullredraw = 1;
if(tclgetboolvar("live_cursor2_backannotate")) {
backannotate_at_cursor_b_pos(r, gr);
if(floaters) set_modify(-2); /* update floater caches to reflect actual backannotation */
need_fullredraw = 1;
} else {
need_all_redraw = 1;
}
}
/* Numerically set hcursor position *** DO NOT PUT AN `else if` BELOW *** */
if(xctx->graph_flags & 128) {