Handle x11 window focus state and window movement.