window: don't call gtk_style_context_set_background()
authorCosimo Cecchi <cosimoc@gnome.org>
Sun, 28 Jun 2015 05:54:42 +0000 (22:54 -0700)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 1 Jul 2015 23:09:23 +0000 (16:09 -0700)
gtk/gtkwindow.c

index 9c42d23afec97a36c88ec66d1dcb497c425d9f7d..cacb266459b99dcfa82f8b4a139c6223cad8afa4 100644 (file)
@@ -7136,12 +7136,6 @@ gtk_window_realize (GtkWidget *widget)
   gtk_widget_register_window (widget, gdk_window);
   gtk_widget_set_realized (widget, TRUE);
 
-  /* We don't need to set a background on the GdkWindow; with decorations
-   * we draw the background ourself
-   */
-  if (!priv->client_decorated && !gtk_widget_get_app_paintable (widget))
-    gtk_style_context_set_background (gtk_widget_get_style_context (widget), gdk_window);
-
   attributes.x = allocation.x;
   attributes.y = allocation.y;
   attributes.width = allocation.width;