Only grab the mouse input if the display is active (window is focused)

This stops the mouse from controlling the camera if the window isn't focused.

Signed-off-by: Steven Downer <grinch@outlook.com>