I read something recently that suggested John III Sobieski had been angling for a marriage between his son James Louis Sobieski and the eldest daughter of the Emperor Leopold, Maria Antonia. This would have been around the time the Holy League was formed and John delivered Vienna from the Turkish siege in 1683-84. So obviously it didn't happen and apparently Leopold was never keen on it. But then he ended up marrying her to the Elector of Bavaria in what turned out to be a pretty unhappy marriage (for her at least). While Max Emmanuel maybe came from a more prestigious family but he wasn't really of a higher rank (there were debates regarding court etiquette as concerned an elected King and his children vs the Imperial family but still they surely at least equal the Electoral dignity). And as a more practical concern I can't see that Bavarian material support or Max Emmanuel's personal leadership could really have compared with Polish contributions made by John III against the Turks. So I get the feeling that it really just came down to the personalities involved, mainly Leopold's.
So what if things unfolded a little differently after the siege of Vienna, John maybe shares the glory with Leopold (who doesn't really deserve it) so as to flatter him and then to cement the new alliance they betroth their children? I assume Leopold has Maria Antonia renounce her rights to Spanish succession as she did before her OTL marriage but that didn't prevent her son Joseph Ferdinand from being made Prince of Asturias. So I guess first off does this marriage alter the calculus at the next Polish Election? If James faces the prospect of becoming Regent in Spain for his son does he step aside in favor of his brother Alexander, whom is mother favorered OTL? Could we then see the Sobieski family ruling both Spain and Poland in the early 18th century?
So what if things unfolded a little differently after the siege of Vienna, John maybe shares the glory with Leopold (who doesn't really deserve it) so as to flatter him and then to cement the new alliance they betroth their children? I assume Leopold has Maria Antonia renounce her rights to Spanish succession as she did before her OTL marriage but that didn't prevent her son Joseph Ferdinand from being made Prince of Asturias. So I guess first off does this marriage alter the calculus at the next Polish Election? If James faces the prospect of becoming Regent in Spain for his son does he step aside in favor of his brother Alexander, whom is mother favorered OTL? Could we then see the Sobieski family ruling both Spain and Poland in the early 18th century?