adjust X window size with border width