Have the list also pull windows that are in other workspaces that have the

2008-02-01  Alex R.M. Turner  <armtuk@gmail.com>

        * src/core/display.c (meta_get_tab_entry_list): Have the list also pull 
          windows that are in other workspaces that have the  
          wm_state_needs_attention flag set
        * src/core/window.c (meta_window_set_demands_attention): Make windows that
          are on other workspaces that demand attention that aren't obscured
          count as being obscured
        Bug #333548.

svn path=/trunk/; revision=3533
This commit is contained in:
Alex R.M. Turner
2008-02-02 04:05:16 +00:00
committed by Thomas James Alexander Thurman
parent 48b6e8dd67
commit 18b63e9b5f
3 changed files with 64 additions and 29 deletions

View File

@@ -4596,6 +4596,29 @@ meta_display_get_tab_list (MetaDisplay *display,
}
tab_list = g_list_reverse (tab_list);
{
GSList *tmp;
MetaWindow *l_window;
tmp = meta_display_list_windows (display);
/* Go through all windows */
while (tmp != NULL)
{
l_window=tmp->data;
/* Check to see if it demands attention */
if (l_window->wm_state_demands_attention &&
l_window->workspace!=workspace)
{
/* if it does, add it to the popup */
tab_list = g_list_prepend (tab_list, l_window);
}
tmp = tmp->next;
} /* End while tmp!=NULL */
}
return tab_list;
}