Agree with
@Tibi088 on some points. If push comes to shove and Leopold has to choose he will choose to go agx France/fight for the Spanish inheritance than focus on Hungary, case in point was the Austro-Turkish war 1663-64, leading to the Peace of Vasar. Based on the wikipedia page, the initiative was with the Austrians and the Holy League but Leopold peaced out to focus on France, Spain and the Rhine. It can be spun for Leopold in the sense that he is Emperor and would be defending parts of the Empire, though comes at the cost of King of Hungary-Croatia not defending those realms. I think on a diplomatic front, this isolates France a bit especially if Vienna falls, it weakens Austria to the extent that there isn't really a counter balance to France on the continent and should France then get their candidate on the throne of Spain, all of continental Europe may as well be partitioned between the Osmanoglu's & the Capets (hyperbolic I know) but it's pretty much what it comes to
France Spain & Portugal are all Capets assuming total gains for the French faction,
then there are the petty states of Germany and a much weakened Habsburg;
PLC would likely be french allies in this scenario, Sobieski was supported by the French and has a French wife and while greatly capable and independent of mind if Austria is this weakened he'll keep the French alliance;
Sweden focuses on Denmark-Norway & Russia, Franco-Ottoman-Swedish bloc hem Russia; Denmark-Norway won't do anything.
Absolutely no one would want such as scenario except well, France and the Ottomans