From 7a58ab59f4d02fc738e7a02c9da5698f83e28a29 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 5 Feb 2001 15:48:00 +0000 Subject: [PATCH] (x_display_and_set_cursor): Check for the focus frame's selected window instead of selected_window. --- src/ChangeLog | 3 +++ src/xterm.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f43f38997cb..ab1de851f17 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2001-02-05 Gerd Moellmann + * 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. diff --git a/src/xterm.c b/src/xterm.c index 3d0b151370d..14a34bd2eca 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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; -- 2.39.2