add select-previous-window support in each frame

add select-previous-window support for each frame as what workgroup-mode does in wp-switch-to-privous-group to make us switch easier in two most used windows.