Linux: cefclient: Fix crash when creating popup window (issue #1006)

This commit is contained in:
Marshall Greenblatt
2018-10-10 13:41:34 +03:00
parent c64898f9fc
commit 49c149c20b
2 changed files with 2 additions and 1 deletions

View File

@@ -369,6 +369,7 @@ void RootWindowGtk::CreateRootWindow(const CefBrowserSettings& settings,
// Set the Display associated with the browser.
::Display* xdisplay = GDK_WINDOW_XDISPLAY(gtk_widget_get_window(window_));
CHECK(xdisplay);
if (with_osr_) {
static_cast<BrowserWindowOsrGtk*>(browser_window_.get())
->set_xdisplay(xdisplay);