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

--HG--
extra : rebase_source : 8055f0cd4e1c51f2a8372adaf96e4fce701cc960
This commit is contained in:
Oleg Romashin 2011-02-23 09:39:00 -08:00
parent a36a04c6d1
commit 0234f1d486

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
}