projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03829e1
)
x11: Avoid some frontend api use
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 18 May 2020 01:47:22 +0000
(21:47 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 18 May 2020 01:47:22 +0000
(21:47 -0400)
We can just use our backend information directly.
gdk/x11/gdkdrag-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkdrag-x11.c
b/gdk/x11/gdkdrag-x11.c
index cbbe0414abc8b924b1a344a34f1bcadfa799b4f5..7e730e799311bdd0220e530ac8a16f6377114380 100644
(file)
--- 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);