Bug 1480409 - [Linux/Gtk] Don't hardcode mHasAlphaVisual to true when WenRender is used, r=jhorak

Original patch author is Sotaro Ikeda [:sotaro] <sotaro.ikeda.g@gmail.com>

MozReview-Commit-ID: AVtDvWFqsxT

--HG--
extra : rebase_source : be77c1a7df0036b454c8795a56a20acc785a548e
This commit is contained in:
Martin Stransky 2018-08-02 15:18:51 +02:00
parent ba2daaeae2
commit 505c25cbf9

View File

@ -3742,7 +3742,7 @@ nsWindow::Create(nsIWidget* aParent,
gtk_widget_set_visual(mShell,
gdk_x11_screen_lookup_visual(screen,
visualId));
mHasAlphaVisual = true;
mHasAlphaVisual = needsAlphaVisual;
} else {
NS_WARNING("We're missing X11 Visual for WebRender!");
}