diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2013-09-06 12:49:14 +0400 |
---|---|---|
committer | Dmitry Antipov <dmantipov@yandex.ru> | 2013-09-06 12:49:14 +0400 |
commit | 7f6c6450a1332c5bbff900fdeccea6d793970643 (patch) | |
tree | 824362905443b243a566a9306d6e4c5db1393ba4 /src/frame.h | |
parent | 179923f74b3fca2aa27488297e6595beb76e0351 (diff) |
Attempt to make redisplay more selective when changing cursor type.
* frame.h (struct frame): New bitfield cursor_type_changed.
* xdisp.c (cursor_type_changed): Remove.
(try_cursor_movement, redisplay_window, try_window_id)
(set_frame_cursor_types, try_window_reusing_current_matrix):
Adjust to use per-frame bitfield.
(redisplay_internal): Look for cursor type change on each visible
frame and consider all frames if cursor type has been changed on
the frame other than selected. If cursor type has been changed on
selected frame only, do not use fast update.
Diffstat (limited to 'src/frame.h')
-rw-r--r-- | src/frame.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/frame.h b/src/frame.h index 3c7499ea81..3dfbac1570 100644 --- a/src/frame.h +++ b/src/frame.h @@ -214,6 +214,9 @@ struct frame matrix adjustments. */ unsigned fonts_changed : 1; + /* Nonzero means that cursor type has been changed. */ + unsigned cursor_type_changed : 1; + /* Margin at the top of the frame. Used to display the tool-bar. */ int tool_bar_lines; |