Linux: Add multi-threaded message loop support (issue #2512)

This commit is contained in:
Marshall Greenblatt
2018-09-20 06:00:14 -07:00
parent c7d187a512
commit 8aa4b7aaae
31 changed files with 1070 additions and 252 deletions

View File

@@ -16,6 +16,7 @@ namespace {
// Create the temp window.
::Window CreateTempWindow() {
::Display* xdisplay = cef_get_xdisplay();
CHECK(xdisplay != 0);
::Window parent_xwindow = DefaultRootWindow(xdisplay);
XSetWindowAttributes swa;
@@ -33,6 +34,7 @@ namespace {
// Close the temp window.
void CloseTempWindow(::Window xwindow) {
::Display* xdisplay = cef_get_xdisplay();
CHECK(xdisplay != 0);
XDestroyWindow(xdisplay, xwindow);
}