x11 loop while refresh