From 58068260a594cb359eb133e20f48f9c7e2087ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 19 Jan 2011 16:41:16 +0100 Subject: [PATCH] window: Make meta_window_tile() semi-public The previous tiling state of a grabbed window should be restored if the drag operation is cancelled (by hitting the Escape key). This might involve to meta_window_tile(), so export the function in window-private.h. https://bugzilla.gnome.org/show_bug.cgi?id=639988 --- src/core/window-private.h | 1 + src/core/window.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/window-private.h b/src/core/window-private.h index 07f6fd2c6..dcb070cc7 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -438,6 +438,7 @@ void meta_window_unmanage (MetaWindow *window, void meta_window_calc_showing (MetaWindow *window); void meta_window_queue (MetaWindow *window, guint queuebits); +void meta_window_tile (MetaWindow *window); void meta_window_maximize_internal (MetaWindow *window, MetaMaximizeFlags directions, MetaRectangle *saved_rect); diff --git a/src/core/window.c b/src/core/window.c index afd721d30..ee2f48aad 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -3184,7 +3184,7 @@ meta_window_is_fullscreen (MetaWindow *window) return window->fullscreen; } -static void +void meta_window_tile (MetaWindow *window) { MetaMaximizeFlags directions;