def find_active_desktop(desktops):
    """Returns the currently active desktop.

    Args:
        desktops: A list containing all Desktop instances.

    Returns:
        An instance of Desktop representing the currently active desktop or None if it can't be found.
    """
    for d in desktops:
        if d.active:
            return d