Yep. However, if you're trying to replicate something that's already built on top of an existing piece of software using the existing API's, I'd assume you wouldn't have to patch the platform just to build on top of it.
However, as tinco explained[0], it seems that there is no "standard graphics api" for linux, and the "link" between window servers and graphics drivers is hard coded. So you do in fact have to patch the video driver to provide support for a new window server (on Linux at least).
Somehow I do not feel confidant about correlating language popularity on stackoverflow to the actual popularity. For some languages (e.g. in my observation:, c#, objective c), there are only few tutorial/sample code outside of stackoverflow as compared to other languages (e.g. again in my observation Java). This makes more and more activity on stackoverflow for some languages as compared to the other languages which has more sample/tutorial on other place on internet.
In my observation, whenever I am writing code in c# and objective c, I almost always land to stackoverflow by google search but this is not the case whenever I write code in JAVA
(disclaimer: i'm the author) it's important to keep two things in mind when considering any ranking: first, and most obviously, no language ranking will be perfect for all readers, because the metrics for ranking languages will vary on an individual basis. second, the intent of the ranking. for our purposes at redmonk, this is an important consideration, because we neither intend to nor claim to produce rankings that are representative of language use broadly. if the rankings were representative of all use, languages such as COBOL would have a substantial presence on the list. we are rather interested in communities that we believe to be more predictive in terms of future use, of which github and stackoverflow are two obvious examples. the sustained strength of javascript on both properties has been one example of their ability to identify trending languages.
as for the criticisms regarding the usage of stackoverflow above, this is why we correlate the stackoverflow rankings with github. one represents discussion and research about a language, the other is manifestation of activity within a language. what's interesting is that the correlation between these properties has historically been strong and appears to be getting stronger over time.
again, no ranking is perfect - ours included - but we feel that measuring programming language interest and traction via these properties is at the very least an interesting datapoint.
Or such languages have only few tutorial/samples in wild web because of superior quality of official documentation. Or, in circular logic, because of existence of good community on stackoverflow.
So think the video driver as library and the windowing system as an application using video driver library.