added right window width calculation

Signed-off-by: Andreas Geibert <ageibert@cemico.de>