x11: Redo cursor handling completely
authorBenjamin Otte <otte@redhat.com>
Fri, 3 Nov 2017 05:01:56 +0000 (06:01 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 3 Nov 2017 23:07:13 +0000 (00:07 +0100)
commite294f7155583469ad25f2da0a3ffa1ca4ab099df
tree3f7f8d799334536046cf66bea01c9491e754129c
parentd30d55be9eae94868af249e84976743a3e2e4614
x11: Redo cursor handling completely

Instead of creating a GdkX11Cursor, create GdkCursors. Cache the XCursor
in a hash table instead.

Also, make use of the new fallback mechanism for fallback code: Make
sure to provide cursors for the names that are guaranteed to exist, but
do not do bad attempts at displaying texture surfaces.
Black/White/transparent is not a replacement for those.
12 files changed:
docs/reference/gdk/gdk4-sections.txt
gdk/x11/gdkcursor-x11.c
gdk/x11/gdkdevice-core-x11.c
gdk/x11/gdkdevice-xi2.c
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkprivate-x11.h
gdk/x11/gdkx-autocleanups.h
gdk/x11/gdkx.h
gdk/x11/gdkx11cursor.h [deleted file]
gdk/x11/gdkx11display.h
gdk/x11/meson.build
testsuite/gtk/objects-finalize.c