[mutter/wayland] display: Revert API break for get_tab_list



commit 3f70bdd3314df5f5d409a371540c8a2a4821d702
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Mar 27 12:41:36 2014 -0400

    display: Revert API break for get_tab_list
    
    gnome-shell apparently uses this, and we shouldn't break it.

 src/core/display.c |    6 ++++--
 src/meta/display.h |    1 +
 2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 2f5c6cd..70e8aa5 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -2771,19 +2771,21 @@ mru_cmp (gconstpointer a,
  * meta_display_get_tab_list:
  * @display: a #MetaDisplay
  * @type: type of tab list
+ * @screen: a #MetaScreen
  * @workspace: (allow-none): origin workspace
  *
  * Determine the list of windows that should be displayed for Alt-TAB
  * functionality.  The windows are returned in most recently used order.
  * If @workspace is not %NULL, the list only conains windows that are on
  * @workspace or have the demands-attention hint set; otherwise it contains
- * all windows.
+ * all windows on @screen.
  *
  * Returns: (transfer container) (element-type Meta.Window): List of windows
  */
 GList*
 meta_display_get_tab_list (MetaDisplay   *display,
                            MetaTabList    type,
+                           MetaScreen    *screen,
                            MetaWorkspace *workspace)
 {
   GList *tab_list = NULL;
@@ -2858,7 +2860,7 @@ meta_display_get_tab_next (MetaDisplay   *display,
   gboolean skip;
   GList *tab_list;
   MetaWindow *ret;
-  tab_list = meta_display_get_tab_list (display, type, workspace);
+  tab_list = meta_display_get_tab_list (display, type, NULL, workspace);
 
   if (tab_list == NULL)
     return NULL;
diff --git a/src/meta/display.h b/src/meta/display.h
index 8d1e669..d6cfacf 100644
--- a/src/meta/display.h
+++ b/src/meta/display.h
@@ -96,6 +96,7 @@ unsigned int meta_display_get_ignored_modifier_mask (MetaDisplay  *display);
 
 GList* meta_display_get_tab_list (MetaDisplay   *display,
                                   MetaTabList    type,
+                                  MetaScreen    *screen,
                                   MetaWorkspace *workspace);
 
 MetaWindow* meta_display_get_tab_next (MetaDisplay   *display,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]