Set the window title
Fix redraw while resizing