Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
65dad34a
Commit
65dad34a
authored
Oct 02, 2007
by
Richard M. Stallman
Browse files
(get_window_cursor_type): Implement documented behavior
for cursor-in-non-selected-windows = t.
parent
7ed54cc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
src/ChangeLog
src/ChangeLog
+5
-0
src/xdisp.c
src/xdisp.c
+16
-8
No files found.
src/ChangeLog
View file @
65dad34a
2007-10-02 Richard Stallman <rms@gnu.org>
* xdisp.c (get_window_cursor_type): Implement documented behavior
for cursor-in-non-selected-windows = t.
2007-09-29 Juri Linkov <juri@jurta.org>
* emacs.c (standard_args): Change priority of "--no-splash"
...
...
src/xdisp.c
View file @
65dad34a
...
...
@@ -21299,7 +21299,7 @@ get_window_cursor_type (w, glyph, width, active_cursor)
non_selected = 1;
}
/*
N
onselected window or nonselected frame. */
/*
Detect a n
onselected window or nonselected frame. */
else if (w != XWINDOW (f->selected_window)
#ifdef HAVE_WINDOW_SYSTEM
|| f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame
...
...
@@ -21318,13 +21318,6 @@ get_window_cursor_type (w, glyph, width, active_cursor)
if (NILP (b->cursor_type))
return NO_CURSOR;
/* Use cursor-in-non-selected-windows for non-selected window or frame. */
if (non_selected)
{
alt_cursor = b->cursor_in_non_selected_windows;
return get_specified_cursor_type (alt_cursor, width);
}
/* Get the normal cursor type for this window. */
if (EQ (b->cursor_type, Qt))
{
...
...
@@ -21334,6 +21327,21 @@ get_window_cursor_type (w, glyph, width, active_cursor)
else
cursor_type = get_specified_cursor_type (b->cursor_type, width);
/* Use cursor-in-non-selected-windows instead
for non-selected window or frame. */
if (non_selected)
{
alt_cursor = b->cursor_in_non_selected_windows;
if (!EQ (Qt, alt_cursor))
return get_specified_cursor_type (alt_cursor, width);
/* t means modify the normal cursor type. */
if (cursor_type == FILLED_BOX_CURSOR)
cursor_type = HOLLOW_BOX_CURSOR;
else if (cursor_type == BAR_CURSOR && *width > 1)
--*width;
return cursor_type;
}
/* Use normal cursor if not blinked off. */
if (!w->cursor_off_p)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment