Honestly, I don't think Windows is going anywhere anytime soon. It controls over 4/5 of the desktop/laptop market, and that means it's where the $$$ is.
https://www.statista.com/statistics/218089/global-market-share-of-windows-7/For programmers, we ask ourselves, "Which system lets me do my own stuff the easiest?", and Windows is becoming less and less often the answer to that question.
For most consumers, it's a case of, "Which has the most games and apps?"
For most companies that product games and apps, it's a question of, "Which system will make me the most money??"
As long as MS keeps 4/5 of the market, they'll keep the "professional programmers" working to sell to that market -- no matter what hoops they have to make their monkeys.... errrr... programmers, leap through.
It's a self sustaining loop: MS dominates the largest share of the market. Companies produce to where they make the most money. Consumers buy where they have the most options.
************************
Linux is excellent, but it'll never break that cycle for one major reason: It's FREE.
No money for companies = no interest in paying employees to produce software.
No professional software = no consumers.
No consumers = No market dominance, which feeds to "no money for companies".
*************************
Consider the difference in how much money MS makes on Office each year, vs. how much OpenOffice earns... Which can pay folks to develop it more? Spend more on advertising? Afford to go from company to company, trying to sell "Enterprise Editions"?
Windows isn't going away anytime soon.