UI flickers when clicking Osnaps

UI flickers when clicking Osnap checkboxes with the left mouse button.
Best seen in the upper right of the Rhino window.

Interestingly the flicker is not there when I click a checkbox with the right mouse button (yellow rings in the video).
Also no flicker when the click is in the docked Osnap bar.

This happens because focus is being set back to the main Rhino window so that key presses end up in the command prompt. You’ll find this often with floating panels.

Yes that is the reason, but we should see if we can eliminate the flicker.

Understood.
In <V8 only the panels flicker, which looks at least better.

BTW, and I only observed it because of your explanation, after a RIGHT click the command prompt didn’t receive the focus.
In <V8 it does.

The right click appears to be a panel bug. I can see in v8 that its not re-setting focus back to the command line. There were a couple of other snaps that didnt seem to resend focus as well. I just patched it up, thanks for the spot! The flicker is sort of interesting. Windows 11 (at least on my machine) tends to make a shadow around the floating window and it has some slight flicker during the focus shifting.

@stevebaer the focus setter is RhinoApp.SetFocusToMainWindow(doc);

https://mcneel.myjetbrains.com/youtrack/issue/RH-77246/Right-click-OSnap-doesnt-set-focus-back-to-command-line

RH-77246 is fixed in the latest BETA