mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Add multi-threaded message loop support (issue #2512)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user