This commit fixes a major regression that prevents creating contexts in some circumstances, on some GPUs. It is known that this approach reintroduces another (in my opinion, somewhat less important) regression, that prevents creating contexts in some circumstances, on some GPUs, if an old version of libx11 is used. I am incompetent to find a better solution.
Closes: #9171 (closed) Closes: #8901 (closed)
Fixes: e89e1f50