mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: cefclient: Fix crash when creating popup window (issue #2512)
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user