Fix restore window position for maximized windows that was previously
tiled