fixed toplevel windows to have proper windowtype set