make use of window classes

Different bindings for switching between all windows, windows in the
same class and windows in other classes.