forked from AuroraMiddleware/gtk
4e58541d52
Copy just enough of libwayland-cursor to make our own loading. This lets us drop the dependency on libwayland-cursor, and changes the startup cost for cursor theme loading from 25ms to 0.1ms. At the same time, simplify the handling of scaled cursors - instead of creating an array of theme objects, just make a single theme object provide all scaled cursor sizes.
13 lines
472 B
Meson
13 lines
472 B
Meson
wayland_cursor_sources = files([
|
|
'wayland-cursor.c',
|
|
'xcursor.c',
|
|
'os-compatibility.c'
|
|
])
|
|
|
|
libwayland_cursor = static_library('wayland+cursor',
|
|
sources: wayland_cursor_sources,
|
|
include_directories: [ confinc, ],
|
|
dependencies: [ glib_dep, ],
|
|
c_args: common_cflags,
|
|
link_args: common_ldflags)
|