window size can be changed by dragging window

Window size jumps up or down to the next resolution when window edge is
dragged in or out.