diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/src/xterm.c b/src/xterm.c index cea952f44d2..7014bdb9740 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -613,8 +613,6 @@ static void | |||
| 613 | x_update_window_end (struct window *w, bool cursor_on_p, | 613 | x_update_window_end (struct window *w, bool cursor_on_p, |
| 614 | bool mouse_face_overwritten_p) | 614 | bool mouse_face_overwritten_p) |
| 615 | { | 615 | { |
| 616 | Mouse_HLInfo *hlinfo = MOUSE_HL_INFO (XFRAME (w->frame)); | ||
| 617 | |||
| 618 | if (!w->pseudo_window_p) | 616 | if (!w->pseudo_window_p) |
| 619 | { | 617 | { |
| 620 | block_input (); | 618 | block_input (); |
| @@ -633,11 +631,7 @@ x_update_window_end (struct window *w, bool cursor_on_p, | |||
| 633 | /* If a row with mouse-face was overwritten, arrange for | 631 | /* If a row with mouse-face was overwritten, arrange for |
| 634 | XTframe_up_to_date to redisplay the mouse highlight. */ | 632 | XTframe_up_to_date to redisplay the mouse highlight. */ |
| 635 | if (mouse_face_overwritten_p) | 633 | if (mouse_face_overwritten_p) |
| 636 | { | 634 | reset_mouse_highlight (MOUSE_HL_INFO (XFRAME (w->frame))); |
| 637 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; | ||
| 638 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; | ||
| 639 | hlinfo->mouse_face_window = Qnil; | ||
| 640 | } | ||
| 641 | } | 635 | } |
| 642 | 636 | ||
| 643 | 637 | ||
| @@ -9445,16 +9439,8 @@ x_free_frame_resources (struct frame *f) | |||
| 9445 | dpyinfo->x_focus_event_frame = 0; | 9439 | dpyinfo->x_focus_event_frame = 0; |
| 9446 | if (f == dpyinfo->x_highlight_frame) | 9440 | if (f == dpyinfo->x_highlight_frame) |
| 9447 | dpyinfo->x_highlight_frame = 0; | 9441 | dpyinfo->x_highlight_frame = 0; |
| 9448 | |||
| 9449 | if (f == hlinfo->mouse_face_mouse_frame) | 9442 | if (f == hlinfo->mouse_face_mouse_frame) |
| 9450 | { | 9443 | reset_mouse_highlight (hlinfo); |
| 9451 | hlinfo->mouse_face_beg_row | ||
| 9452 | = hlinfo->mouse_face_beg_col = -1; | ||
| 9453 | hlinfo->mouse_face_end_row | ||
| 9454 | = hlinfo->mouse_face_end_col = -1; | ||
| 9455 | hlinfo->mouse_face_window = Qnil; | ||
| 9456 | hlinfo->mouse_face_mouse_frame = 0; | ||
| 9457 | } | ||
| 9458 | 9444 | ||
| 9459 | unblock_input (); | 9445 | unblock_input (); |
| 9460 | } | 9446 | } |
| @@ -9826,7 +9812,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 9826 | struct terminal *terminal; | 9812 | struct terminal *terminal; |
| 9827 | struct x_display_info *dpyinfo; | 9813 | struct x_display_info *dpyinfo; |
| 9828 | XrmDatabase xrdb; | 9814 | XrmDatabase xrdb; |
| 9829 | Mouse_HLInfo *hlinfo; | ||
| 9830 | ptrdiff_t lim; | 9815 | ptrdiff_t lim; |
| 9831 | 9816 | ||
| 9832 | block_input (); | 9817 | block_input (); |
| @@ -9967,8 +9952,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 9967 | /* We have definitely succeeded. Record the new connection. */ | 9952 | /* We have definitely succeeded. Record the new connection. */ |
| 9968 | 9953 | ||
| 9969 | dpyinfo = xzalloc (sizeof *dpyinfo); | 9954 | dpyinfo = xzalloc (sizeof *dpyinfo); |
| 9970 | hlinfo = &dpyinfo->mouse_highlight; | ||
| 9971 | |||
| 9972 | terminal = x_create_terminal (dpyinfo); | 9955 | terminal = x_create_terminal (dpyinfo); |
| 9973 | 9956 | ||
| 9974 | { | 9957 | { |
| @@ -10082,13 +10065,10 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name) | |||
| 10082 | dpyinfo->cmap = DefaultColormapOfScreen (dpyinfo->screen); | 10065 | dpyinfo->cmap = DefaultColormapOfScreen (dpyinfo->screen); |
| 10083 | dpyinfo->root_window = RootWindowOfScreen (dpyinfo->screen); | 10066 | dpyinfo->root_window = RootWindowOfScreen (dpyinfo->screen); |
| 10084 | dpyinfo->icon_bitmap_id = -1; | 10067 | dpyinfo->icon_bitmap_id = -1; |
| 10085 | hlinfo->mouse_face_beg_row = hlinfo->mouse_face_beg_col = -1; | ||
| 10086 | hlinfo->mouse_face_end_row = hlinfo->mouse_face_end_col = -1; | ||
| 10087 | hlinfo->mouse_face_face_id = DEFAULT_FACE_ID; | ||
| 10088 | hlinfo->mouse_face_window = Qnil; | ||
| 10089 | hlinfo->mouse_face_overlay = Qnil; | ||
| 10090 | dpyinfo->wm_type = X_WMTYPE_UNKNOWN; | 10068 | dpyinfo->wm_type = X_WMTYPE_UNKNOWN; |
| 10091 | 10069 | ||
| 10070 | reset_mouse_highlight (&dpyinfo->mouse_highlight); | ||
| 10071 | |||
| 10092 | /* See if we can construct pixel values from RGB values. */ | 10072 | /* See if we can construct pixel values from RGB values. */ |
| 10093 | if (dpyinfo->visual->class == TrueColor) | 10073 | if (dpyinfo->visual->class == TrueColor) |
| 10094 | { | 10074 | { |