From 5916ae5ec4fc589db574bee3620bfb6e4a580375 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 17 May 2020 21:47:22 -0400 Subject: [PATCH] x11: Avoid some frontend api use We can just use our backend information directly. --- gdk/x11/gdkdrag-x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/x11/gdkdrag-x11.c b/gdk/x11/gdkdrag-x11.c index cbbe0414ab..7e730e7993 100644 --- a/gdk/x11/gdkdrag-x11.c +++ b/gdk/x11/gdkdrag-x11.c @@ -665,12 +665,12 @@ is_pointer_within_shape (GdkDisplay *display, cairo_region_t *input_shape; child->shape = NULL; - if (gdk_display_supports_shapes (display)) + if (display_x11->have_shapes) child->shape = _gdk_x11_xwindow_get_shape (display_x11->xdisplay, child->xid, 1, ShapeBounding); #ifdef ShapeInput input_shape = NULL; - if (gdk_display_supports_input_shapes (display)) + if (display_x11->have_input_shapes) input_shape = _gdk_x11_xwindow_get_shape (display_x11->xdisplay, child->xid, 1, ShapeInput);