window: don't add the background style class when drawing CSD elements

We already set it in init, so this is just redundant.
The additional window-content style class here is needed so that we can
distinguish between the full X window background and the background for
the actual window contents.
This commit is contained in:
Cosimo Cecchi 2013-03-21 08:47:06 -04:00
parent 4bcaadac51
commit 8fd9575ab6

View File

@ -8956,7 +8956,7 @@ gtk_window_draw (GtkWidget *widget,
gtk_cairo_should_draw_window (cr, gtk_widget_get_window (widget)))
{
gtk_style_context_save (context);
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BACKGROUND);
gtk_style_context_add_class (context, "window-content");
if (priv->client_decorated &&
priv->decorated &&