gdk: Try harder at tracking drawing contexts

If gdk_cairo_create() is called within a frame draw operation, we can
still associate the Cairo context with a GdkDrawingContext.
This commit is contained in:
Emmanuele Bassi
2016-06-10 17:00:29 +01:00
parent 32a37351cf
commit 222bcf1a71
3 changed files with 10 additions and 11 deletions

View File

@ -180,7 +180,7 @@ gdk_drawing_context_init (GdkDrawingContext *self)
static const cairo_user_data_key_t draw_context_key;
static void
void
gdk_cairo_set_drawing_context (cairo_t *cr,
GdkDrawingContext *context)
{