mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
Restore the ability to use the default effect implementations
The addition of method implementations in the base class in the plugin-gobject branch broke the logic for checking to see if a plugin didn't implement an effect. Requiring a mandatory chain up to the base class is a fiddly anyways, so this patch does the 'running' count computations in a different (and more robust) way. mutter-plugin.h mutter-plugin.c: Add _mutter_plugin_effect_started() to increment the running count. mutter-plugin-manager.c: Call _mutter_plugin_effect_started() as necessary. mutter-plugin.c: Remove the "real" methods that did nothing but implement the runnning count. plugins/default.c: Remove chain-ups.
This commit is contained in:
@ -264,4 +264,7 @@ mutter_plugin_get_xdisplay (MutterPlugin *plugin);
|
||||
MetaScreen *
|
||||
mutter_plugin_get_screen (MutterPlugin *plugin);
|
||||
|
||||
void
|
||||
_mutter_plugin_effect_started (MutterPlugin *plugin);
|
||||
|
||||
#endif /* MUTTER_PLUGIN_H_ */
|
||||
|
Reference in New Issue
Block a user