From f80e39e2ca338316573c544eda4d2a3b361e80ff Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Mon, 3 Nov 2008 10:07:12 +0000 Subject: [PATCH] mutter_plugin_get_screen() --- src/compositor/mutter/mutter-plugin-manager.c | 10 ++++++++++ src/include/mutter-plugin.h | 3 +++ 2 files changed, 13 insertions(+) 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_ */