Avoid calling XClearArea() when the window is hidden

X11 does not deliver Expose events while the window is hidden, but buffers them
nevertheless.  If a window with a lot of activity is unmapped, we may fill the
buffers with Expose events and inadvertently block the terminal reader thread.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>