]> git.eshelyaron.com Git - emacs.git/commitdiff
(x_display_and_set_cursor): Check for the focus
authorGerd Moellmann <gerd@gnu.org>
Mon, 5 Feb 2001 15:48:00 +0000 (15:48 +0000)
committerGerd Moellmann <gerd@gnu.org>
Mon, 5 Feb 2001 15:48:00 +0000 (15:48 +0000)
frame's selected window instead of selected_window.

src/ChangeLog
src/xterm.c

index f43f38997cb5622a5ab8ee31ff31e1c46c3ae11f..ab1de851f17c1a2f5bdb44cca4b42098ac27bf26 100644 (file)
@@ -1,5 +1,8 @@
 2001-02-05  Gerd Moellmann  <gerd@gnu.org>
 
+       * xterm.c (x_display_and_set_cursor): Check for the focus
+       frame's selected window instead of selected_window.
+
        * xdisp.c (try_scrolling): If point is in the line below the
        window, make sure to move the iterator at least a canonical
        char height down.
index 3d0b151370dad9997fa0e532acdc60a2a9258152..14a34bd2ecab2236bb7bd7beb7f86110e48301e3 100644 (file)
@@ -10877,8 +10877,8 @@ x_display_and_set_cursor (w, on, hpos, vpos, x, y)
     }
   else
     {
-      if (w != XWINDOW (selected_window)
-         || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame)
+      if (f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame
+         || w != XWINDOW (f->selected_window))
        {
          extern int cursor_in_non_selected_windows;