forked from AuroraMiddleware/gtk
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:
parent
815f0d7605
commit
a9fd3ae249
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user