Bug 1434202 - [Wayland] Set popups as app paintable on Wayland as we paint them ourself there, r?jhorak draft
authorMartin Stransky <stransky@redhat.com>
Tue, 30 Jan 2018 10:36:24 +0100
changeset 748672 0158eaa8a86c53b36d64fd6391064e752739875f
parent 748520 9a3b6d64a64b328ed0de3d6503b99f20d1c94cfb
push id97225
push userstransky@redhat.com
push dateTue, 30 Jan 2018 09:36:48 +0000
reviewersjhorak
bugs1434202
milestone60.0a1
Bug 1434202 - [Wayland] Set popups as app paintable on Wayland as we paint them ourself there, r?jhorak MozReview-Commit-ID: 9kpovSmmZss
widget/gtk/nsWindow.cpp
--- a/widget/gtk/nsWindow.cpp
+++ b/widget/gtk/nsWindow.cpp
@@ -3785,16 +3785,20 @@ nsWindow::Create(nsIWidget* aParent,
             SetCursor(eCursor_standard);
 
             if (aInitData->mNoAutoHide) {
                 gint wmd = ConvertBorderStyles(mBorderStyle);
                 if (wmd != -1)
                   gdk_window_set_decorations(mGdkWindow, (GdkWMDecoration) wmd);
             }
 
+            if (!mIsX11Display) {
+                gtk_widget_set_app_paintable(mShell, TRUE);
+            }
+
             // If the popup ignores mouse events, set an empty input shape.
             if (aInitData->mMouseTransparent) {
               cairo_rectangle_int_t rect = { 0, 0, 0, 0 };
               cairo_region_t *region = cairo_region_create_rectangle(&rect);
 
               gdk_window_input_shape_combine_region(mGdkWindow, region, 0, 0);
               cairo_region_destroy(region);
             }