Skip to content

axis: the first jog after the MDI tab no longer stops at once - #4872

Open
grandixximo wants to merge 1 commit into
LinuxCNC:2.9from
grandixximo:axis-jog-focus
Open

grandixximo wants to merge 1 commit into
LinuxCNC:2.9from
grandixximo:axis-jog-focus

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

After using the MDI tab, the first click on a jog button in AXIS moves a fraction of a millimeter and stops; the second click jogs normally.

Raising the Manual tab focuses ., and the first jog then focuses its axis button. Tk reports that as a FocusOut on . with detail NotifyInferior, which the binding took for the window losing the focus, so jog_off_all() stopped the jog. The fix ignores NotifyInferior; losing the focus to another application still stops the jogs.

Checked with AXIS under Xvfb on sim/axis/axis_mm.ini: before, the first jog after the MDI tab stopped at 0.25 mm; after, it runs like the second.

Raising the Manual tab focuses ".", and the first jog then focuses its axis button. Tk reports that as a FocusOut on "." with detail NotifyInferior, which the binding took for the window losing the focus, so jog_off_all() stopped the jog a fraction of a millimeter in. Ignore NotifyInferior; losing the focus to another application still stops the jogs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant