Take window border width into account for window buffer updates and recycling

Merged Olivier Fourdan requested to merge ofourdan/xserver:issue951 into master

Currently, we would recycle the window buffers on window resize, but that does not take int oaccount the case where the border width is changed.

So instead of recycling the buffers only on window resize, recycle on configure notify instead.

That fixes the issue with xterm menus at least (which use a 2 pixel border width)

Merge request reports