Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Description
This both affects the current tool system and the MEP22 toolmanager.
The cursor position only gets updated when the canvas detects a cursor motion, which leads to problems 1) immediately after switching fullscreen and 2) if alt-tab'ing to change window focus, moving the cursor and alt-tab'ing back to the original canvas. With either case, the x-y position printed in the status bar is incorrect and it is possible for keyboard shortcuts (e.g.) "g" or "l" to end up affecting a "wrong" axes.
There is a length comment regarding this in the tkagg backend implementation (_update_pointer_position
) but even that backend doesn't handle this properly.
Ultimately I think(?) the correct way to solve this is to do away with_lastx/_lasty
and just refetch the cursor position whenever a LocationEvent must be emitted.