Respect size hints to properly handle terminal windows.

The resizing is yet a bit buggy at the beginning, as the mouse jumps
around (XWarpPointer() does not seem to have an effect there).

Minimal size is not yet checked, so keep it sane while playing around
with the resize.