? metacity-debug-panel-dialogs.patch
Index: src/workspace.c
===================================================================
RCS file: /cvs/gnome/metacity/src/workspace.c,v
retrieving revision 1.58
diff -p -u -r1.58 workspace.c
--- src/workspace.c	2 Aug 2004 19:23:03 -0000	1.58
+++ src/workspace.c	6 Aug 2004 16:44:23 -0000
@@ -799,7 +799,14 @@ meta_workspace_focus_default_window (Met
       else if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_SLOPPY)
         meta_workspace_focus_mru_window (workspace, not_this_one);
       else if (meta_prefs_get_focus_mode () == META_FOCUS_MODE_MOUSE)
-        meta_topic (META_DEBUG_FOCUS, "No mouse window to focus found\n");
+        {
+          meta_verbose ("Setting focus to no_focus_window, since no valid "
+                        "window to focus found.\n");
+          XSetInputFocus (workspace->screen->display->xdisplay,
+                          workspace->screen->display->no_focus_window,
+                          RevertToPointerRoot,
+                          meta_display_get_current_time (workspace->screen->display));
+        }
     }
 }
 
