From b2fe0097e6d0b0903a6c231a1f000a6e44fecb3e Mon Sep 17 00:00:00 2001 From: Tomas Frydrych Date: Wed, 29 Oct 2008 13:27:35 +0000 Subject: [PATCH] mutter_plugin_get_xdisplay() --- src/compositor/mutter/mutter-plugin-manager.c | 10 ++++++++++ src/include/mutter-plugin.h | 9 +++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/compositor/mutter/mutter-plugin-manager.c b/src/compositor/mutter/mutter-plugin-manager.c index c48baea6e..f57bc9eaa 100644 --- a/src/compositor/mutter/mutter-plugin-manager.c +++ b/src/compositor/mutter/mutter-plugin-manager.c @@ -927,3 +927,13 @@ mutter_plugin_get_windows (MutterPlugin *plugin) return mutter_get_windows (plugin_mgr->screen); } +Display * +mutter_plugin_get_xdisplay (MutterPlugin *plugin) +{ + MutterPluginPrivate *priv = plugin->manager_private; + MutterPluginManager *mgr = priv->self; + MetaDisplay *display = meta_screen_get_display (mgr->screen); + Display *xdpy = meta_display_get_xdisplay (display); + + return xdpy; +} diff --git a/src/include/mutter-plugin.h b/src/include/mutter-plugin.h index e8a733bee..6d3ec8bca 100644 --- a/src/include/mutter-plugin.h +++ b/src/include/mutter-plugin.h @@ -230,12 +230,6 @@ mutter_plugin_query_screen_size (MutterPlugin *plugin, int *width, int *height); -ClutterActor * -mutter_plugin_get_overlay_group (MutterPlugin *plugin); - -ClutterActor * -mutter_plugin_get_stage (MutterPlugin *plugin); - void mutter_plugin_set_stage_reactive (MutterPlugin *plugin, gboolean reactive); @@ -251,4 +245,7 @@ mutter_plugin_set_stage_input_region (MutterPlugin *plugin, GList * mutter_plugin_get_windows (MutterPlugin *plugin); +Display * +mutter_plugin_get_xdisplay (MutterPlugin *plugin); + #endif /* MUTTER_PLUGIN_H_ */