summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-04-23 18:24:29 +0200
committerBenjamin Otte <otte@redhat.com>2018-04-24 23:16:58 +0200
commitfd686afeb2bba843c7b63a5b2284141981042439 (patch)
treed36cc9912d2cf877ad9847aedde2c4544382504a /gdk/x11
parent6aa89f2163cf335d267412b5220bcbf272f8efd8 (diff)
downloadgtk+-fd686afeb2bba843c7b63a5b2284141981042439.tar.gz
drawcontext: Add gdk_draw_context_in_frame() API
This makes the previous gdk_draw_context_is_drawing() function public under a new name. I decided against the old name because we use the term "frame" for a drawing operation, so I wanted to have this boolean flag reuse the term.
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdkglcontext-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkglcontext-x11.c b/gdk/x11/gdkglcontext-x11.c
index dc89483311..f5d00eeb27 100644
--- a/gdk/x11/gdkglcontext-x11.c
+++ b/gdk/x11/gdkglcontext-x11.c
@@ -1250,7 +1250,7 @@ gdk_x11_display_make_gl_context_current (GdkDisplay *display,
return FALSE;
}
- if (context_x11->is_attached || gdk_draw_context_is_drawing (GDK_DRAW_CONTEXT (context)))
+ if (context_x11->is_attached || gdk_draw_context_is_in_frame (GDK_DRAW_CONTEXT (context)))
drawable = context_x11->attached_drawable;
else
drawable = context_x11->unattached_drawable;