diff --git a/src/compositor/mutter/mutter-plugin-manager.c b/src/compositor/mutter/mutter-plugin-manager.c index c3c3e7d2a..b3be546da 100644 --- a/src/compositor/mutter/mutter-plugin-manager.c +++ b/src/compositor/mutter/mutter-plugin-manager.c @@ -927,3 +927,13 @@ mutter_plugin_get_xdisplay (MutterPlugin *plugin) return xdpy; } + +MetaScreen * +mutter_plugin_get_screen (MutterPlugin *plugin) +{ + MutterPluginPrivate *priv = plugin->manager_private; + MutterPluginManager *mgr = priv->self; + + return mgr->screen; +} + diff --git a/src/include/mutter-plugin.h b/src/include/mutter-plugin.h index 6d3ec8bca..427f24c72 100644 --- a/src/include/mutter-plugin.h +++ b/src/include/mutter-plugin.h @@ -248,4 +248,7 @@ mutter_plugin_get_windows (MutterPlugin *plugin); Display * mutter_plugin_get_xdisplay (MutterPlugin *plugin); +MetaScreen * +mutter_plugin_get_screen (MutterPlugin *plugin); + #endif /* MUTTER_PLUGIN_H_ */