Main window: Try to make window resize a bit more smooth

Signed-off-by: Jerome Flesch <jflesch@gmail.com>