aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/termchar.h2
-rw-r--r--src/xfns.c2
-rw-r--r--src/xterm.c31
3 files changed, 17 insertions, 18 deletions
diff --git a/src/termchar.h b/src/termchar.h
index 1a9d6015148..5502ca22949 100644
--- a/src/termchar.h
+++ b/src/termchar.h
@@ -1,5 +1,5 @@
1/* Flags and parameters describing terminal's characteristics. 1/* Flags and parameters describing terminal's characteristics.
2 Copyright (C) 1985, 1986, 2003 Free Software Foundation, Inc. 2 Copyright (C) 1985, 1986 Free Software Foundation, Inc.
3 3
4This file is part of GNU Emacs. 4This file is part of GNU Emacs.
5 5
diff --git a/src/xfns.c b/src/xfns.c
index 6ff6b16d5b4..66f0a2e94a4 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -4756,7 +4756,7 @@ x_create_tip_frame (dpyinfo, parms, text)
4756 x_default_parameter (f, parms, Qborder_width, make_number (2), 4756 x_default_parameter (f, parms, Qborder_width, make_number (2),
4757 "borderWidth", "BorderWidth", RES_TYPE_NUMBER); 4757 "borderWidth", "BorderWidth", RES_TYPE_NUMBER);
4758 4758
4759 /* This defaults to 1 in order to match xterm. We recognize either 4759 /* This defaults to 2 in order to match xterm. We recognize either
4760 internalBorderWidth or internalBorder (which is what xterm calls 4760 internalBorderWidth or internalBorder (which is what xterm calls
4761 it). */ 4761 it). */
4762 if (NILP (Fassq (Qinternal_border_width, parms))) 4762 if (NILP (Fassq (Qinternal_border_width, parms)))
diff --git a/src/xterm.c b/src/xterm.c
index c47b52d881c..c64a73d8aa6 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -482,6 +482,7 @@ x_update_begin (f)
482 /* Nothing to do. */ 482 /* Nothing to do. */
483} 483}
484 484
485
485/* Start update of window W. Set the global variable updated_window 486/* Start update of window W. Set the global variable updated_window
486 to the window being updated and set output_cursor to the cursor 487 to the window being updated and set output_cursor to the cursor
487 position of W. */ 488 position of W. */
@@ -7542,7 +7543,7 @@ x_catch_errors_unwind (old_val)
7542{ 7543{
7543 Lisp_Object first = XCAR (old_val); 7544 Lisp_Object first = XCAR (old_val);
7544 Display *dpy = XSAVE_VALUE (first)->pointer; 7545 Display *dpy = XSAVE_VALUE (first)->pointer;
7545 7546
7546 /* The display may have been closed before this function is called. 7547 /* The display may have been closed before this function is called.
7547 Check if it is still open before calling XSync. */ 7548 Check if it is still open before calling XSync. */
7548 if (x_display_info_for_display (dpy) != 0) 7549 if (x_display_info_for_display (dpy) != 0)
@@ -10618,17 +10619,15 @@ x_delete_display (dpyinfo)
10618 struct x_display_info *dpyinfo; 10619 struct x_display_info *dpyinfo;
10619{ 10620{
10620 int i; 10621 int i;
10621 10622 struct display *d;
10622 { 10623
10623 /* Delete the generic struct display for this X display. */ 10624 /* Delete the generic struct display for this X display. */
10624 struct display *d; 10625 for (d = display_list; d; d = d->next_display)
10625 for (d = display_list; d; d = d->next_display) 10626 if (d->type == output_x_window && d->display_info.x == dpyinfo)
10626 if (d->type == output_x_window && d->display_info.x == dpyinfo) 10627 {
10627 { 10628 delete_display (d);
10628 delete_display (d); 10629 break;
10629 break; 10630 }
10630 }
10631 }
10632 10631
10633 delete_keyboard_wait_descriptor (dpyinfo->connection); 10632 delete_keyboard_wait_descriptor (dpyinfo->connection);
10634 10633
@@ -10826,11 +10825,11 @@ x_create_frame_display (struct x_display_info *dpyinfo)
10826 display->delete_display_hook = x_delete_frame_display; 10825 display->delete_display_hook = x_delete_frame_display;
10827 10826
10828 display->rif = &x_redisplay_interface; 10827 display->rif = &x_redisplay_interface;
10829 display->scroll_region_ok = 1; /* We'll scroll partial frames. */ 10828 display->scroll_region_ok = 1; /* We'll scroll partial frames. */
10830 display->char_ins_del_ok = 1; 10829 display->char_ins_del_ok = 1;
10831 display->line_ins_del_ok = 1; /* We'll just blt 'em. */ 10830 display->line_ins_del_ok = 1; /* We'll just blt 'em. */
10832 display->fast_clear_end_of_line = 1; /* X does this well. */ 10831 display->fast_clear_end_of_line = 1; /* X does this well. */
10833 display->memory_below_frame = 0; /* We don't remember what scrolls 10832 display->memory_below_frame = 0; /* We don't remember what scrolls
10834 off the bottom. */ 10833 off the bottom. */
10835 10834
10836 return display; 10835 return display;