diff options
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/xterm.c b/src/xterm.c index fd7ffd68e62..dc1fd3cbbd1 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -349,7 +349,7 @@ static int handle_one_xevent (struct x_display_info *, XEvent *, | |||
| 349 | int *, struct input_event *); | 349 | int *, struct input_event *); |
| 350 | /* Don't declare this NO_RETURN because we want no | 350 | /* Don't declare this NO_RETURN because we want no |
| 351 | interference with debugging failing X calls. */ | 351 | interference with debugging failing X calls. */ |
| 352 | static SIGTYPE x_connection_closed (Display *, const char *); | 352 | static void x_connection_closed (Display *, const char *); |
| 353 | 353 | ||
| 354 | 354 | ||
| 355 | /* Flush display of frame F, or of all frames if F is null. */ | 355 | /* Flush display of frame F, or of all frames if F is null. */ |
| @@ -2928,10 +2928,14 @@ x_clear_frame (struct frame *f) | |||
| 2928 | /* We don't set the output cursor here because there will always | 2928 | /* We don't set the output cursor here because there will always |
| 2929 | follow an explicit cursor_to. */ | 2929 | follow an explicit cursor_to. */ |
| 2930 | BLOCK_INPUT; | 2930 | BLOCK_INPUT; |
| 2931 | XClearWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f)); | ||
| 2932 | 2931 | ||
| 2933 | /* We have to clear the scroll bars, too. If we have changed | 2932 | /* The following calls have been commented out because they do not |
| 2934 | colors or something like that, then they should be notified. */ | 2933 | seem to accomplish anything, apart from causing flickering during |
| 2934 | window resize. */ | ||
| 2935 | /* XClearWindow (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f)); */ | ||
| 2936 | |||
| 2937 | /* We have to clear the scroll bars. If we have changed colors or | ||
| 2938 | something like that, then they should be notified. */ | ||
| 2935 | x_scroll_bar_clear (f); | 2939 | x_scroll_bar_clear (f); |
| 2936 | 2940 | ||
| 2937 | #if defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS) | 2941 | #if defined (USE_GTK) && defined (USE_TOOLKIT_SCROLL_BARS) |
| @@ -7646,7 +7650,7 @@ x_trace_wire (void) | |||
| 7646 | SIGPIPE will fail, causing Xlib to invoke the X IO error handler, | 7650 | SIGPIPE will fail, causing Xlib to invoke the X IO error handler, |
| 7647 | which will do the appropriate cleanup for us. */ | 7651 | which will do the appropriate cleanup for us. */ |
| 7648 | 7652 | ||
| 7649 | static SIGTYPE | 7653 | static void |
| 7650 | x_connection_signal (int signalnum) /* If we don't have an argument, */ | 7654 | x_connection_signal (int signalnum) /* If we don't have an argument, */ |
| 7651 | /* some compilers complain in signal calls. */ | 7655 | /* some compilers complain in signal calls. */ |
| 7652 | { | 7656 | { |
| @@ -7669,7 +7673,7 @@ static char *error_msg; | |||
| 7669 | /* Handle the loss of connection to display DPY. ERROR_MESSAGE is | 7673 | /* Handle the loss of connection to display DPY. ERROR_MESSAGE is |
| 7670 | the text of an error message that lead to the connection loss. */ | 7674 | the text of an error message that lead to the connection loss. */ |
| 7671 | 7675 | ||
| 7672 | static SIGTYPE | 7676 | static void |
| 7673 | x_connection_closed (Display *dpy, const char *error_message) | 7677 | x_connection_closed (Display *dpy, const char *error_message) |
| 7674 | { | 7678 | { |
| 7675 | struct x_display_info *dpyinfo = x_display_info_for_display (dpy); | 7679 | struct x_display_info *dpyinfo = x_display_info_for_display (dpy); |
| @@ -9117,7 +9121,7 @@ x_make_frame_visible (struct frame *f) | |||
| 9117 | unknown reason, the call to XtMapWidget is completely ignored. | 9121 | unknown reason, the call to XtMapWidget is completely ignored. |
| 9118 | Mapping the widget a second time works. */ | 9122 | Mapping the widget a second time works. */ |
| 9119 | 9123 | ||
| 9120 | if (!FRAME_VISIBLE_P (f) && --retry_count > 0) | 9124 | if (!FRAME_VISIBLE_P (f) && --retry_count != 0) |
| 9121 | goto retry; | 9125 | goto retry; |
| 9122 | } | 9126 | } |
| 9123 | } | 9127 | } |
| @@ -9722,7 +9726,7 @@ same_x_server (const char *name1, const char *name2) | |||
| 9722 | for (; *name1 != '\0' && *name1 == *name2; name1++, name2++) | 9726 | for (; *name1 != '\0' && *name1 == *name2; name1++, name2++) |
| 9723 | { | 9727 | { |
| 9724 | if (*name1 == ':') | 9728 | if (*name1 == ':') |
| 9725 | seen_colon++; | 9729 | seen_colon = 1; |
| 9726 | if (seen_colon && *name1 == '.') | 9730 | if (seen_colon && *name1 == '.') |
| 9727 | return 1; | 9731 | return 1; |
| 9728 | } | 9732 | } |