[mutter] window: Remove meta_window_get_rect
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] window: Remove meta_window_get_rect
- Date: Tue, 27 May 2014 19:16:46 +0000 (UTC)
commit d4058d947ba8b84aa31f21392e947245353ff6cf
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Tue May 27 15:15:41 2014 -0400
window: Remove meta_window_get_rect
It's a bad API that returns weird results you wouldn't expect.
src/core/window.c | 14 --------------
src/meta/window.h | 1 -
2 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 415ff48..deefa75 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -6945,20 +6945,6 @@ meta_window_is_skip_taskbar (MetaWindow *window)
}
/**
- * meta_window_get_rect:
- * @window: a #MetaWindow
- *
- * Gets the rectangle that bounds @window, ignoring any window decorations.
- *
- * Return value: (transfer none): the #MetaRectangle for the window
- */
-MetaRectangle *
-meta_window_get_rect (MetaWindow *window)
-{
- return &window->rect;
-}
-
-/**
* meta_window_get_screen:
* @window: a #MetaWindow
*
diff --git a/src/meta/window.h b/src/meta/window.h
index 1a60278..d0bf608 100644
--- a/src/meta/window.h
+++ b/src/meta/window.h
@@ -108,7 +108,6 @@ gboolean meta_window_appears_focused (MetaWindow *window);
gboolean meta_window_is_shaded (MetaWindow *window);
gboolean meta_window_is_override_redirect (MetaWindow *window);
gboolean meta_window_is_skip_taskbar (MetaWindow *window);
-MetaRectangle *meta_window_get_rect (MetaWindow *window);
void meta_window_get_input_rect (const MetaWindow *window, MetaRectangle *rect);
void meta_window_get_frame_rect (const MetaWindow *window, MetaRectangle *rect);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]