diff --git a/src/core/window-private.h b/src/core/window-private.h index a1cb15dd2..9b7987d06 100644 --- a/src/core/window-private.h +++ b/src/core/window-private.h @@ -595,9 +595,6 @@ void meta_window_handle_mouse_grab_op_event (MetaWindow *window, GList* meta_window_get_workspaces (MetaWindow *window); -gboolean meta_window_located_on_workspace (MetaWindow *window, - MetaWorkspace *workspace); - void meta_window_get_work_area_current_monitor (MetaWindow *window, MetaRectangle *area); void meta_window_get_work_area_for_monitor (MetaWindow *window, diff --git a/src/core/window.c b/src/core/window.c index b2db85e11..87a6197d1 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -2109,6 +2109,14 @@ set_net_wm_state (MetaWindow *window) } } +/** + * meta_window_located_on_workspace: + * @window: a #MetaWindow + * @workspace: a #MetaWorkspace + * + * Returns whether @window is displayed on @workspace, or whether it + * will be displayed on all workspaces. + */ gboolean meta_window_located_on_workspace (MetaWindow *window, MetaWorkspace *workspace) diff --git a/src/meta/window.h b/src/meta/window.h index 4aec594c3..4d74bafe6 100644 --- a/src/meta/window.h +++ b/src/meta/window.h @@ -85,6 +85,8 @@ Atom meta_window_get_window_type_atom (MetaWindow *window); MetaWorkspace *meta_window_get_workspace (MetaWindow *window); int meta_window_get_monitor (MetaWindow *window); gboolean meta_window_is_on_all_workspaces (MetaWindow *window); +gboolean meta_window_located_on_workspace (MetaWindow *window, + MetaWorkspace *workspace); gboolean meta_window_is_hidden (MetaWindow *window); void meta_window_activate (MetaWindow *window,guint32 current_time); void meta_window_activate_with_workspace (MetaWindow *window,