Steps to reproduce:
1. Open the “CursorLockedBug” project
2. Build And Run the project
3. Click and hold the right mouse button in the application window
4. Move the mouse outside of the application window
Expected result: The cursor stays in the application window
Actual result: The cursor escapes to the outside of the application window
Reproducible with: 2020.3.44f1, 2021.3.14f1, 2021.3.16f1, 2022.2.2f1, 2023.1.0a26
Not reproducible with: 2021.1.0a1, 2021.2.0a2, 2021.3.0f1, 2021.3.13f1
Reproduced on: Ubuntu 18.04 (Intel)
Not reproduced on: macOS Monterey 12.2 (Intel)
Note: The issue is reproducible only on Linux and only in a build