Index: display.c
===================================================================
RCS file: /cvs/gnome/metacity/src/display.c,v
retrieving revision 1.165
diff -u -p -r1.165 display.c
--- display.c	5 Dec 2002 21:59:14 -0000	1.165
+++ display.c	5 Dec 2002 23:03:44 -0000
@@ -3115,6 +3115,7 @@ meta_display_get_tab_list (MetaDisplay  
         MetaWindow *window = tmp->data;
         
         if (!window->minimized &&
+	    (window->input || window->take_focus) &&
             window->screen == screen &&
             IN_TAB_CHAIN (window, type) &&
             (workspace == NULL ||
