[mutter] Revert "core/window.c: Remove unused function"



commit 4c2371f2e7dfe8110e0324ac956161ce391b500a
Author: Javier JardÃn <jjardon gnome org>
Date:   Thu Apr 26 11:54:12 2012 +0100

    Revert "core/window.c: Remove unused function"
    
    This reverts commit ff6c31dcc0d69ef72b58902283ad123b9f4c11b7.

 src/core/window.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 918d10e..5a7ac62 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -2813,6 +2813,21 @@ window_would_be_covered (const MetaWindow *newbie)
 }
 
 static gboolean
+map_frame (MetaWindow *window)
+{
+  if (window->frame && !window->frame->mapped)
+    {
+      meta_topic (META_DEBUG_WINDOW_STATE,
+                  "Frame actually needs map\n");
+      window->frame->mapped = TRUE;
+      meta_ui_map_frame (window->screen->ui, window->frame->xwindow);
+      return TRUE;
+    }
+  else
+    return FALSE;
+}
+
+static gboolean
 unmap_frame (MetaWindow *window)
 {
   if (window->frame && window->frame->mapped)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]