def is_replica_of(a, b):
    """Return True if monitor a is a replica of b.

    Replica means same resolution and position.
    """
    return (
        a.pos_x == b.pos_x
        and a.pos_y == b.pos_y
        and a.res_x == b.res_x
        and a.res_y == b.res_y
        and b.enabled
    )