Commit a50baba1 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

widget: Call gdk_window_mark_paint_from_clip() again

The proper window to call it is the event window, as the call itself
ignores non-native windows anyway.
parent f64bb38a
......@@ -6956,10 +6956,13 @@ gtk_widget_draw_internal (GtkWidget *widget,
if (gdk_cairo_get_clip_rectangle (cr, NULL))
{
GdkWindow *event_window;
gboolean result;
gboolean push_group;
//gdk_window_mark_paint_from_clip (window, cr);
event_window = gtk_cairo_get_event_window (cr);
if (event_window)
gdk_window_mark_paint_from_clip (event_window, cr);
push_group =
widget->priv->alpha != 255 &&
......@@ -7026,7 +7029,7 @@ gtk_widget_draw_internal (GtkWidget *widget,
}
if (cairo_status (cr) &&
gtk_cairo_get_event_window (cr))
event_window != NULL)
{
/* We check the event so we only warn about internal GTK+ calls.
* Errors might come from PDF streams having write failures and
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment