Flush any outstanding stuff in the window in non-buffered get_internal_paint_info case

We return the raw window drawable, so its likely the app will do some
weird stuff to it, like draw using non-gdk operations. We don't want
the app to see any half-drawn state, so flush everything.

This fixes a scroll issue in firefox at least.
This commit is contained in:
Alexander Larsson 2009-01-22 20:46:08 +01:00
parent 815f0d7605
commit a9fd3ae249

View File

@ -2716,7 +2716,12 @@ gdk_window_get_internal_paint_info (GdkWindow *window,
*real_drawable = paint->pixmap;
}
else
*real_drawable = window;
{
/* This means you're probably gonna be doing some weird shit
directly to the window, so we flush all outstanding stuff */
gdk_window_flush (window);
*real_drawable = window;
}
}
gdk_window_get_offsets (window, &x_off, &y_off);