callign entryfunc should not steal the current window, so save before calling and...