Show mouse cursor and Input Mode strange behavior

If I start 2 windows to test my multiplayer game
It must work like this:
I click the image and it spawns the player(after that cursor should disappear), but it does not on of the windows.

if I click in window_1 on image to spawn (I would need to click 2-4 more time to remove cursor)
and after a death, it must show the cursor. and it shows and the 2nd window which should not show the cursor shows it and (from this point I rotate the other windows’ character), but it should not be like this.

Desired results:
Click on image
it re spawns the player
and the mouse cursor disappears

and when the on 2nd window appear the cursor (the 1st one can’t remove it until it won’t be removed from 2nd window)