← Back to team overview

kicad-developers team mailing list archive

New cursor logic


The handling of cursors (arrow/pencil/etc., not the crosshairs) got pretty broken in the transition to action-based menus/toolbars/hotkeys.

I’ve refreshed it and added some new stuff.

There is now an onSetCursor() handler which is called form both the GAL canvas and the GAL backend.  This is required (at least on OSX) to keep the cursor from flickering between the assigned cursor and the arrow.

There’s also now a facility for the point editors to communicate with the drawing tools so that the cursor can be a pencil except when over a point (when it’s an arrow).

And two-click-place tools (such as place symbol) now switch between pencil (idle state) and arrow (when dragging an instantiated item to place it).

As always, scream if you see anything odd.