clear box in window function

Signed-off-by: Alexander Skjolden <alex@plastboks.net>