mirror of https://github.com/adamdruppe/arsd.git
avoid problem
This commit is contained in:
parent
6648262a26
commit
89718d996e
|
@ -11544,7 +11544,10 @@ mixin DynamicLoad!(XRender, "Xrender", 1, false, true) XRenderLibrary;
|
||||||
// now remove all registered images to prevent shared memory leaks
|
// now remove all registered images to prevent shared memory leaks
|
||||||
freeImages();
|
freeImages();
|
||||||
|
|
||||||
XCloseDisplay(display);
|
// tbh I don't know why it is doing this but like if this happens to run
|
||||||
|
// from the other thread there's frequent hanging inside here.
|
||||||
|
if(thisIsGuiThread)
|
||||||
|
XCloseDisplay(display);
|
||||||
display = null;
|
display = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue