[mutter/meego-1.0: 4/30] [MutterWindow] Made mutter_window_detach() public
- From: Tomas Frydrych <tomasf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/meego-1.0: 4/30] [MutterWindow] Made mutter_window_detach() public
- Date: Fri, 14 May 2010 15:50:05 +0000 (UTC)
commit 6e08cdca7ae78b972d5718ea96379a2895aa6f40
Author: Tomas Frydrych <tf linux intel com>
Date: Wed Sep 30 16:19:47 2009 +0100
[MutterWindow] Made mutter_window_detach() public
mutter-moblin needs to be able to return to normal compositing after stepping
out temporarily while a fullscreen application is running. (This is rather
hackish; use with care.)
src/compositor/mutter-window.c | 12 +++++++++---
src/include/mutter-window.h | 1 +
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/compositor/mutter-window.c b/src/compositor/mutter-window.c
index 18b815d..0bbf2f6 100644
--- a/src/compositor/mutter-window.c
+++ b/src/compositor/mutter-window.c
@@ -97,7 +97,6 @@ static void mutter_window_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
-static void mutter_window_detach (MutterWindow *self);
static gboolean mutter_window_has_shadow (MutterWindow *self);
static void mutter_window_clear_shape_region (MutterWindow *self);
@@ -934,12 +933,19 @@ mutter_window_effect_completed (MutterWindow *self,
mutter_window_after_effects (self);
}
-/* Called to drop our reference to a window backing pixmap that we
+/**
+ * mutter_window_detach:
+ * @self: a #MutterWindow
+ *
+ * Called to drop our reference to a window backing pixmap that we
* previously obtained with XCompositeNameWindowPixmap. We do this
* when the window is unmapped or when we want to update to a new
* pixmap for a new size.
+ *
+ * This function is intended for internal use; if you are calling it externally,
+ * you are likely doing something you should not.
*/
-static void
+void
mutter_window_detach (MutterWindow *self)
{
MutterWindowPrivate *priv = self->priv;
diff --git a/src/include/mutter-window.h b/src/include/mutter-window.h
index 9ef3794..4667f70 100644
--- a/src/include/mutter-window.h
+++ b/src/include/mutter-window.h
@@ -67,5 +67,6 @@ ClutterActor * mutter_window_get_texture (MutterWindow *mcw);
gboolean mutter_window_is_override_redirect (MutterWindow *mcw);
const char * mutter_window_get_description (MutterWindow *mcw);
gboolean mutter_window_showing_on_its_workspace (MutterWindow *mcw);
+void mutter_window_detach (MutterWindow *mcw);
#endif /* MUTTER_WINDOW_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]