add(core/linux/X11): comment to explain why XInitThreads is called first
This commit is contained in:
parent
355dd53857
commit
ef74e6a953
1 changed files with 4 additions and 0 deletions
|
|
@ -86,6 +86,10 @@ pub fn init(
|
|||
) !X11 {
|
||||
// TODO(core): return errors.NotSupported if not supported
|
||||
const libx11 = try LibX11.load();
|
||||
|
||||
// Xlibx11.XInitThreads must be called first
|
||||
//
|
||||
// if not, 'Unknown sequence number while processing queue' errors occur.
|
||||
_ = libx11.XInitThreads();
|
||||
const libgl: ?LibGL = LibGL.load() catch |err| switch (err) {
|
||||
error.LibraryNotFound => null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue