Bug 636008 - [Maemo6] Fennec crashes on startup, with Xlib error. r=wolfiR a=npotb

This commit is contained in:
Oleg Romashin
2011-02-23 09:39:00 -08:00
parent 8de623927a
commit 6257fc1ef6

View File

@@ -2606,8 +2606,10 @@ nsWindow::createQWidget(MozQWidget *parent, nsWidgetInitData *aInitData)
#endif
#ifdef MOZ_X11
XSetWindowBackgroundPixmap(QX11Info::display(),
newView->effectiveWinId(), None);
if (newView->effectiveWinId()) {
XSetWindowBackgroundPixmap(QX11Info::display(),
newView->effectiveWinId(), None);
}
#endif
}