Fixed grabFocus to work when a parented Display is first shown.