Make wayland load cursors on demand

Add and use a modified libwayland-cursor in-tree,
just as done in the main branch for GTK4
This commit is contained in:
Luca Bacci
2022-11-03 17:31:32 +01:00
parent 4432a03742
commit 66a199806c
15 changed files with 1446 additions and 61 deletions

View File

@ -1,3 +1,5 @@
subdir('cursor')
gdk_wayland_sources = files(
'gdkapplaunchcontext-wayland.c',
'gdkcursor-wayland.c',
@ -31,7 +33,6 @@ gdk_wayland_deps = [
xkbdep,
wlclientdep,
wlprotocolsdep,
wlcursordep,
wlegldep,
]
@ -112,4 +113,5 @@ libgdk_wayland = static_library('gdk-wayland',
'-DG_LOG_DOMAIN="Gdk"',
] + common_cflags,
link_args: common_ldflags,
link_with: [libwayland_cursor, ],
dependencies: [ gdk_deps, gdk_wayland_deps, ])