Index: window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.293
diff -u -p -r1.293 window.c
--- window.c	15 Aug 2003 22:09:55 -0000	1.293
+++ window.c	20 Aug 2003 14:19:34 -0000
@@ -3117,8 +3117,16 @@ meta_window_focus (MetaWindow  *window,
       if (window->take_focus)
         {
           meta_topic (META_DEBUG_FOCUS,
+                      "Calling XSetInputFocus() on no_focus_window since take_focus = true\n");
+          XSetInputFocus (window->display->xdisplay,
+                          window->display->no_focus_window,
+                          RevertToPointerRoot,
+                          timestamp);
+
+          meta_topic (META_DEBUG_FOCUS,
                       "Sending WM_TAKE_FOCUS to %s since take_focus = true\n",
                       window->desc);
+
           meta_window_send_icccm_message (window,
                                           window->display->atom_wm_take_focus,
                                           timestamp);
