Check that the window width is superior or equal to one. Fixes #114. Thx
@hrhrprasath.