Handle the x11 window focus more properly