Improve explicit drawing and flushing (fixes GtkRuler)
Use the same code path to get a CGContext for both gdk_draw_* and gdk_cairo_create and make sure we unlockFocus in both cases. This fixes the broken rendering in GtkRuler. Also use an average of flush intervals when checking whether we can flush or not, since otherwise we get too sensitive and block almost all explicit flushes that are caused by mouse movements for example.
This commit is contained in:
committed by
Alexander Larsson
parent
255ec543b1
commit
255756cfc8
@ -92,7 +92,7 @@ gdk_window_impl_quartz_get_context (GdkDrawable *drawable,
|
||||
* is needed when called from outside "real" expose events, for
|
||||
* example for synthesized expose events when realizing windows
|
||||
* and for widgets that send fake expose events like the arrow
|
||||
* buttons in spinbuttons.
|
||||
* buttons in spinbuttons or the position marker in rulers.
|
||||
*/
|
||||
if (window_impl->in_paint_rect_count == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user