mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-24 21:05:40 +02:00
All decoration, particle and module interfaces now takes a pixman_image_t parameter, and all drawing is done using pixman APIs. The wayland/xcb backends implement a new interface functions, get_pixman_image(), that should return a pixman image instance that is suitable for rendering. In the wayland backend, the image uses the same backing data as the cairo surface. In the XCB backend, we create a new image each time, and then blit it to the cairo surface at commit time.
17 lines
602 B
Meson
17 lines
602 B
Meson
deco_sdk = declare_dependency(dependencies: [pixman])
|
|
|
|
decorations = []
|
|
foreach deco : ['background', 'stack', 'underline']
|
|
if plugs_as_libs
|
|
shared_module('@0@'.format(deco), '@0@.c'.format(deco),
|
|
dependencies: deco_sdk,
|
|
name_prefix: 'decoration_',
|
|
install: true,
|
|
install_dir: join_paths(get_option('libdir'), 'f00bar'))
|
|
else
|
|
decorations += [declare_dependency(
|
|
sources: '@0@.c'.format(deco),
|
|
dependencies: deco_sdk,
|
|
compile_args: '-DHAVE_PLUGIN_@0@'.format(deco.underscorify()))]
|
|
endif
|
|
endforeach
|