**System Information**
Operating system: Linux-5.8.0-7642-generic-x86_64-with-glibc2.32 64 Bits
Graphics card: GeForce RTX 2080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 460.56
**Blender Version**
Broken: version: 3.1.0 Alpha, branch: master (modified), commit date: 2022-01-10 10:40, hash: `rB101fadcf6b93`
**Short description of error**
When drawing 3D widgets with the Gizmo/GizmoGroup API, the widget closest to the camera doesn't always seem to be selected.
**Exact steps for others to reproduce the error**
- Prototype addon: {F12798874}
- Minimal test file: {F12798941}
- Align multiple widgets in the camera and move the mouse to see that the front-most one isn't the one that gets highlighted:
{F12798949}
CC @campbellbarton