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

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

View File

@ -162,7 +162,7 @@ void BrowserWindowStdGtk::Hide() {
void BrowserWindowStdGtk::SetBounds(int x, int y, size_t width, size_t height) {
REQUIRE_MAIN_THREAD();
if (browser_) {
if (xdisplay_ && browser_) {
::Window xwindow = browser_->GetHost()->GetWindowHandle();
DCHECK(xwindow);
SetXWindowBounds(xdisplay_, xwindow, x, y, width, height);