Rémi Bernon : server: Use the capture window as cursor window if it is set.