Skip to content

st: Only use clutter_actor_invalidate_paint_volume() if the API exists

With commits fab39bbe and 62e40a13 we started depending on a new ClutterActor API: clutter_actor_invalidate_paint_volume()

Given that this commit was applied to the 40 stable release, it broke ABI compatibility with mutter, which is something we guarantee between stable releases. So use GModule to dynamically find the symbol in our loaded libraries. If it exists, use it and invalidate the paint volume. If it doesn't exist, libmutter is still at version 40.0 and we don't need to invalidate the paint volume.

This also adds a dependency on gmodule. We need to link against gmodule to use g_module_open() and g_module_symbol() APIs.

Merge request reports