aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-26 09:19:57 +0000
committerRichard M. Stallman1994-10-26 09:19:57 +0000
commitc4ec904fd64cbfa43b47bdccf9c1841e2b93e90d (patch)
tree52dde9d97c52104a8cbed2ef26fa9f102e59a881 /src
parent99da5b4efd18ca72ef99b47ccabfc53cba8face1 (diff)
downloademacs-c4ec904fd64cbfa43b47bdccf9c1841e2b93e90d.tar.gz
emacs-c4ec904fd64cbfa43b47bdccf9c1841e2b93e90d.zip
(x_window): Pass new arg f to hack_wm_protocols.
(x_set_mouse_color, x_real_positions): Change calls to x_catch_errors and friends.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 5ae6ae5c93e..8fea14d3e6b 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -867,7 +867,7 @@ x_real_positions (f, xptr, yptr)
867 Window *tmp_children; 867 Window *tmp_children;
868 int tmp_nchildren; 868 int tmp_nchildren;
869 869
870 x_catch_errors (f); 870 x_catch_errors (FRAME_X_DISPLAY (f));
871 while (1) 871 while (1)
872 { 872 {
873 XQueryTree (FRAME_X_DISPLAY (f), outer, &tmp_root_window, 873 XQueryTree (FRAME_X_DISPLAY (f), outer, &tmp_root_window,
@@ -906,11 +906,11 @@ x_real_positions (f, xptr, yptr)
906 That can happen when you restart some window managers. 906 That can happen when you restart some window managers.
907 If so, we get an error in XTranslateCoordinates. 907 If so, we get an error in XTranslateCoordinates.
908 Detect that and try the whole thing over. */ 908 Detect that and try the whole thing over. */
909 if (! x_had_errors_p (f)) 909 if (! x_had_errors_p (FRAME_X_DISPLAY (f)))
910 break; 910 break;
911 } 911 }
912 912
913 x_uncatch_errors (f); 913 x_uncatch_errors (FRAME_X_DISPLAY (f));
914 914
915 *xptr = f->display.x->left_pos - win_x; 915 *xptr = f->display.x->left_pos - win_x;
916 *yptr = f->display.x->top_pos - win_y; 916 *yptr = f->display.x->top_pos - win_y;
@@ -1091,7 +1091,7 @@ x_set_mouse_color (f, arg, oldval)
1091 BLOCK_INPUT; 1091 BLOCK_INPUT;
1092 1092
1093 /* It's not okay to crash if the user selects a screwy cursor. */ 1093 /* It's not okay to crash if the user selects a screwy cursor. */
1094 x_catch_errors (f); 1094 x_catch_errors (FRAME_X_DISPLAY (f));
1095 1095
1096 if (!EQ (Qnil, Vx_pointer_shape)) 1096 if (!EQ (Qnil, Vx_pointer_shape))
1097 { 1097 {
@@ -1100,7 +1100,7 @@ x_set_mouse_color (f, arg, oldval)
1100 } 1100 }
1101 else 1101 else
1102 cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_xterm); 1102 cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_xterm);
1103 x_check_errors (f, "bad text pointer cursor: %s"); 1103 x_check_errors (FRAME_X_DISPLAY (f), "bad text pointer cursor: %s");
1104 1104
1105 if (!EQ (Qnil, Vx_nontext_pointer_shape)) 1105 if (!EQ (Qnil, Vx_nontext_pointer_shape))
1106 { 1106 {
@@ -1110,7 +1110,7 @@ x_set_mouse_color (f, arg, oldval)
1110 } 1110 }
1111 else 1111 else
1112 nontext_cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_left_ptr); 1112 nontext_cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_left_ptr);
1113 x_check_errors (f, "bad nontext pointer cursor: %s"); 1113 x_check_errors (FRAME_X_DISPLAY (f), "bad nontext pointer cursor: %s");
1114 1114
1115 if (!EQ (Qnil, Vx_mode_pointer_shape)) 1115 if (!EQ (Qnil, Vx_mode_pointer_shape))
1116 { 1116 {
@@ -1120,7 +1120,7 @@ x_set_mouse_color (f, arg, oldval)
1120 } 1120 }
1121 else 1121 else
1122 mode_cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_xterm); 1122 mode_cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_xterm);
1123 x_check_errors (f, "bad modeline pointer cursor: %s"); 1123 x_check_errors (FRAME_X_DISPLAY (f), "bad modeline pointer cursor: %s");
1124 1124
1125 if (!EQ (Qnil, Vx_sensitive_text_pointer_shape)) 1125 if (!EQ (Qnil, Vx_sensitive_text_pointer_shape))
1126 { 1126 {
@@ -1133,8 +1133,8 @@ x_set_mouse_color (f, arg, oldval)
1133 cross_cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_crosshair); 1133 cross_cursor = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_crosshair);
1134 1134
1135 /* Check and report errors with the above calls. */ 1135 /* Check and report errors with the above calls. */
1136 x_check_errors (f, "can't set cursor shape: %s"); 1136 x_check_errors (FRAME_X_DISPLAY (f), "can't set cursor shape: %s");
1137 x_uncatch_errors (f); 1137 x_uncatch_errors (FRAME_X_DISPLAY (f));
1138 1138
1139 { 1139 {
1140 XColor fore_color, back_color; 1140 XColor fore_color, back_color;
@@ -2318,7 +2318,7 @@ x_window (f, window_prompting, minibuffer_only)
2318 XSetWMHints (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 2318 XSetWMHints (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
2319 &f->display.x->wm_hints); 2319 &f->display.x->wm_hints);
2320 2320
2321 hack_wm_protocols (shell_widget); 2321 hack_wm_protocols (f, shell_widget);
2322 2322
2323#ifdef HACK_EDITRES 2323#ifdef HACK_EDITRES
2324 XtAddEventHandler (shell_widget, 0, True, _XEditResCheckMessages, 0); 2324 XtAddEventHandler (shell_widget, 0, True, _XEditResCheckMessages, 0);