diff --git a/src/core/window.c b/src/core/window.c index 8c732df79..7d7d0c49d 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2798,50 +2798,6 @@ meta_window_is_fullscreen (MetaWindow *window) return window->fullscreen; } -/** - * meta_window_get_all_monitors: - * @window: The #MetaWindow - * @length: (out): gint holding the length, may be %NULL to ignore - * - * Returns: (array length=length) (element-type gint) (transfer container): - * List of the monitor indices the window is on. - */ -gint * -meta_window_get_all_monitors (MetaWindow *window, gsize *length) -{ - MetaBackend *backend = meta_get_backend (); - MetaMonitorManager *monitor_manager = - meta_backend_get_monitor_manager (backend); - MetaLogicalMonitor *logical_monitors; - unsigned int n_logical_monitors; - unsigned int i; - GArray *monitors; - MetaRectangle window_rect; - - logical_monitors = - meta_monitor_manager_get_logical_monitors (monitor_manager, - &n_logical_monitors); - - monitors = g_array_new (FALSE, FALSE, sizeof (int)); - meta_window_get_frame_rect (window, &window_rect); - - for (i = 0; i < n_logical_monitors; i++) - { - MetaRectangle *monitor_rect = &logical_monitors[i].rect; - - if (meta_rectangle_overlap (&window_rect, monitor_rect)) - g_array_append_val (monitors, i); - } - - if (length) - *length = monitors->len; - - i = -1; - g_array_append_val (monitors, i); - - return (gint*) g_array_free (monitors, FALSE); -} - /** * meta_window_is_screen_sized: * @window: A #MetaWindow diff --git a/src/meta/window.h b/src/meta/window.h index 2ae325e07..b482bed37 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -185,7 +185,6 @@ gboolean meta_window_is_monitor_sized (MetaWindow *window); gboolean meta_window_is_on_primary_monitor (MetaWindow *window); gboolean meta_window_requested_bypass_compositor (MetaWindow *window); gboolean meta_window_requested_dont_bypass_compositor (MetaWindow *window); -gint *meta_window_get_all_monitors (MetaWindow *window, gsize *length); gboolean meta_window_get_icon_geometry (MetaWindow *window, MetaRectangle *rect);