From 4c2371f2e7dfe8110e0324ac956161ce391b500a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jard=C3=B3n?= Date: Thu, 26 Apr 2012 11:54:12 +0100 Subject: [PATCH] Revert "core/window.c: Remove unused function" This reverts commit ff6c31dcc0d69ef72b58902283ad123b9f4c11b7. --- src/core/window.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/core/window.c b/src/core/window.c index 918d10e4d..5a7ac628e 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2812,6 +2812,21 @@ window_would_be_covered (const MetaWindow *newbie) return FALSE; /* none found */ } +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) {