detection of multiple instances (squashed commit)

sending RAISE_WINDOW leap event if we are not
the main instance.