removed redundant function in window_manager.