Ignore clicks on 3D view when frame does not have focus.

Signed-off-by: Kristian Duske <kristian.duske@gmail.com>