updated for version 7.0059
diff --git a/src/gui.c b/src/gui.c
index 4b6bd97..4537820 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -2667,6 +2667,10 @@
 	    update_screen(VALID);
 	    showruler(FALSE);
 	    setcursor();
+	    /* In case the commands moved the focus to another window
+	     * (temporarily). */
+	    if (need_mouse_correct)
+		gui_mouse_correct();
 
 	    once_already = 1;
 	    retval = 0;