diff options
Diffstat (limited to 'src/nsterm.m')
| -rw-r--r-- | src/nsterm.m | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 57d32ee0528..25eb7ebc495 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -1186,7 +1186,6 @@ x_free_frame_resources (struct frame *f) | |||
| 1186 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; | 1186 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; |
| 1187 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; | 1187 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; |
| 1188 | hlinfo->mouse_face_window = Qnil; | 1188 | hlinfo->mouse_face_window = Qnil; |
| 1189 | hlinfo->mouse_face_deferred_gc = 0; | ||
| 1190 | hlinfo->mouse_face_mouse_frame = 0; | 1189 | hlinfo->mouse_face_mouse_frame = 0; |
| 1191 | } | 1190 | } |
| 1192 | 1191 | ||
| @@ -1887,8 +1886,7 @@ static void | |||
| 1887 | ns_frame_up_to_date (struct frame *f) | 1886 | ns_frame_up_to_date (struct frame *f) |
| 1888 | /* -------------------------------------------------------------------------- | 1887 | /* -------------------------------------------------------------------------- |
| 1889 | External (hook): Fix up mouse highlighting right after a full update. | 1888 | External (hook): Fix up mouse highlighting right after a full update. |
| 1890 | Some highlighting was deferred if GC was happening during | 1889 | Can't use FRAME_MOUSE_UPDATE due to ns_frame_begin and ns_frame_end calls. |
| 1891 | note_mouse_highlight (), while other highlighting was deferred for update. | ||
| 1892 | -------------------------------------------------------------------------- */ | 1890 | -------------------------------------------------------------------------- */ |
| 1893 | { | 1891 | { |
| 1894 | NSTRACE (ns_frame_up_to_date); | 1892 | NSTRACE (ns_frame_up_to_date); |
| @@ -1896,19 +1894,17 @@ ns_frame_up_to_date (struct frame *f) | |||
| 1896 | if (FRAME_NS_P (f)) | 1894 | if (FRAME_NS_P (f)) |
| 1897 | { | 1895 | { |
| 1898 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); | 1896 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (f); |
| 1899 | if ((hlinfo->mouse_face_deferred_gc || f ==hlinfo->mouse_face_mouse_frame) | 1897 | if (f == hlinfo->mouse_face_mouse_frame) |
| 1900 | /*&& hlinfo->mouse_face_mouse_frame*/) | 1898 | { |
| 1901 | { | 1899 | block_input (); |
| 1902 | block_input (); | ||
| 1903 | ns_update_begin(f); | 1900 | ns_update_begin(f); |
| 1904 | if (hlinfo->mouse_face_mouse_frame) | 1901 | if (hlinfo->mouse_face_mouse_frame) |
| 1905 | note_mouse_highlight (hlinfo->mouse_face_mouse_frame, | 1902 | note_mouse_highlight (hlinfo->mouse_face_mouse_frame, |
| 1906 | hlinfo->mouse_face_mouse_x, | 1903 | hlinfo->mouse_face_mouse_x, |
| 1907 | hlinfo->mouse_face_mouse_y); | 1904 | hlinfo->mouse_face_mouse_y); |
| 1908 | hlinfo->mouse_face_deferred_gc = 0; | ||
| 1909 | ns_update_end(f); | 1905 | ns_update_end(f); |
| 1910 | unblock_input (); | 1906 | unblock_input (); |
| 1911 | } | 1907 | } |
| 1912 | } | 1908 | } |
| 1913 | } | 1909 | } |
| 1914 | 1910 | ||
| @@ -3869,7 +3865,6 @@ ns_initialize_display_info (struct ns_display_info *dpyinfo) | |||
| 3869 | dpyinfo->root_window = 42; /* a placeholder.. */ | 3865 | dpyinfo->root_window = 42; /* a placeholder.. */ |
| 3870 | 3866 | ||
| 3871 | hlinfo->mouse_face_mouse_frame = NULL; | 3867 | hlinfo->mouse_face_mouse_frame = NULL; |
| 3872 | hlinfo->mouse_face_deferred_gc = 0; | ||
| 3873 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; | 3868 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; |
| 3874 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; | 3869 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; |
| 3875 | hlinfo->mouse_face_face_id = DEFAULT_FACE_ID; | 3870 | hlinfo->mouse_face_face_id = DEFAULT_FACE_ID; |