When hovering over a PlanarFigure (not a controlpoint) and performing a right-mousebutton click an contextmenu is requested.
Afterwards, the statemachine remains in the hovering state. This is fine and correct if no context menu is shown.
If this menu is a modal dialog (like it's the default with contextmenus in Qt) the dialog 'eats' all the mousemove events and the interactor does not notice that the cursor has actually moved. In this case, the state should actually change to something different than hovering.
However, as it is not possible to actively get the cursor-position from inside the interactor (it simply does not work like this) I had to add a new helper-state 'ContextMenuHelperState'. This state is entered when the 'SecondaryButtonPressed' event is processed.
This new state is left after the first MouseMoveEvent after the contextmenu is closed. Depending on the new position of the cursor with this new mousemove, the statemachine switches to the correct state.