For #2780, ensure that the cursor doesn't interfere with mouse events

@gruehle