Move window_proc to Frame_app class.