On Fri, 21 Jul 2023 21:09:56 GMT, Harshitha Onkar <hon...@openjdk.org> wrote:
> Additionally, I believe concurrent external manual mouse movement is not > supported when Robot is performing mouse events. This would produce erroneous > result. I don't think it's correct to say that such a situation is *not supported*. From this point of view, the situation described in the bug is not supported either. Yet you are fixing this scenario. If the user moves the mouse when Robot generates mouse events, it is expected to produce erroneous results because the mouse ends up in the wrong position when Robot issues further events — essentially it breaks the assumptions in the test. So, we should check whether the internal flags passed to the generated events remain valid. But it could be not as easy to verify as in this case. Are mouse events affected if the user types text on the keyboard while Robot is moving the mouse? It's a mirrored scenario to the one described in the bug. The position of mouse remains intact, yet flags may change by concurrent keyboard input. ------------- PR Comment: https://git.openjdk.org/jdk/pull/14744#issuecomment-1648353847