OSDN Git Service

* managedwin.itb (ManagedWin::reveal): Don't set focus.
authorTom Tromey <tromey@redhat.com>
Thu, 7 Dec 2000 22:40:36 +0000 (22:40 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 7 Dec 2000 22:40:36 +0000 (22:40 +0000)
gdb/gdbtk/library/ChangeLog
gdb/gdbtk/library/managedwin.itb

index 7c0a890..85ba088 100644 (file)
@@ -1,5 +1,7 @@
 2000-12-07  Tom Tromey  <tromey@redhat.com>
 
+       * managedwin.itb (ManagedWin::reveal): Don't set focus.
+
        * tclIndex: Rebuilt.
        * interface.tcl (set_exe_name): Save session.
        (gdbtk_quit_check): Save session.
index 1bda9f5..7eb23c5 100644 (file)
@@ -40,11 +40,12 @@ body ManagedWin::reveal {} {
   set top [winfo toplevel [namespace tail $this]]
   raise $top
   wm deiconify $top
-  
-  # I don't understand this next line and no one commented it, so it's gone.
-  #focus -force [focus -lastfor $top]
-  
-  focus $top
+
+  # There used to be a `focus -force' here, but using -force is
+  # unfriendly, so it was removed.  It was then replaced with a simple
+  # `focus $top'.  However, this has no useful effect -- it just
+  # resets the subwindow of $top which has the `potential' focus.
+  # This can actually be confusing to the user.
 }
 
 body ManagedWin::restart {} {