commit 3dee59f923fb90bc22645ae176512aa9deb6decf
Author: Matt Kraai <kraai@ftbfs.org>
Date:   Thu Feb 5 22:31:42 2009 -0800

    Only skip the first window if it's focussed
    
    Normally, if the focussed window is in the list of windows to switch
    among, it's first.  However, if there are windows on other workspaces
    that demand attention, they're prepended to the list.  Therefore, only
    skip the first item in the list if it's the focussed window.

diff --git a/src/core/display.c b/src/core/display.c
index cd56da8..91ca5f1 100644
--- a/src/core/display.c
+++ b/src/core/display.c
@@ -4484,7 +4484,7 @@ meta_display_get_tab_next (MetaDisplay   *display,
   else
     {
       skip = display->focus_window != NULL && 
-             IN_TAB_CHAIN (display->focus_window, type);
+             tab_list->data == display->focus_window;
       if (backward)
         ret = find_tab_backward (display, type, screen, workspace,
                                  tab_list, skip);
