the game will continue to accept all kinds of inputs when in the background. this is includes but is by no means is limited to switching to another desktop and moving another windows above Minecraft
types of input it continues to recognize:
mouse movement
mouse clicks
keyboard keys typed
this does not stop other things/apps ability to read the same thing
I cannot reproduce this. Please attach a video showing the issue.