diff options
| author | Richard M. Stallman | 1996-09-29 01:29:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-09-29 01:29:41 +0000 |
| commit | 2729a2b5d8b2c5c158f463bc8e5dff8c9637284e (patch) | |
| tree | dd38fed9081fa72f2aa4192f8712cb1a13218b5c /src | |
| parent | 16890e3564c2ef8d8a53f6d70f6539262544397c (diff) | |
| download | emacs-2729a2b5d8b2c5c158f463bc8e5dff8c9637284e.tar.gz emacs-2729a2b5d8b2c5c158f463bc8e5dff8c9637284e.zip | |
(show_mouse_face): Undo 1996-08-30 change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/xterm.c b/src/xterm.c index d06335b10f4..2a90a15bc83 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -2199,7 +2199,14 @@ show_mouse_face (dpyinfo, hl) | |||
| 2199 | FRAME_PTR f = XFRAME (WINDOW_FRAME (w)); | 2199 | FRAME_PTR f = XFRAME (WINDOW_FRAME (w)); |
| 2200 | int i; | 2200 | int i; |
| 2201 | int cursor_off = 0; | 2201 | int cursor_off = 0; |
| 2202 | 2202 | int old_curs_x = curs_x; | |
| 2203 | int old_curs_y = curs_y; | ||
| 2204 | |||
| 2205 | /* Set these variables temporarily | ||
| 2206 | so that if we have to turn the cursor off and on again | ||
| 2207 | we will put it back at the same place. */ | ||
| 2208 | curs_x = f->phys_cursor_x; | ||
| 2209 | curs_y = f->phys_cursor_y; | ||
| 2203 | for (i = FRAME_X_DISPLAY_INFO (f)->mouse_face_beg_row; | 2210 | for (i = FRAME_X_DISPLAY_INFO (f)->mouse_face_beg_row; |
| 2204 | i <= FRAME_X_DISPLAY_INFO (f)->mouse_face_end_row; i++) | 2211 | i <= FRAME_X_DISPLAY_INFO (f)->mouse_face_end_row; i++) |
| 2205 | { | 2212 | { |
| @@ -2232,7 +2239,10 @@ show_mouse_face (dpyinfo, hl) | |||
| 2232 | 2239 | ||
| 2233 | /* If we turned the cursor off, turn it back on. */ | 2240 | /* If we turned the cursor off, turn it back on. */ |
| 2234 | if (cursor_off) | 2241 | if (cursor_off) |
| 2235 | x_update_cursor (f, 1); | 2242 | x_display_cursor (f, 1, curs_x, curs_y); |
| 2243 | |||
| 2244 | curs_x = old_curs_x; | ||
| 2245 | curs_y = old_curs_y; | ||
| 2236 | 2246 | ||
| 2237 | /* Change the mouse cursor according to the value of HL. */ | 2247 | /* Change the mouse cursor according to the value of HL. */ |
| 2238 | if (hl > 0) | 2248 | if (hl > 0) |