aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-07-01 04:04:32 +0000
committerJim Blandy1993-07-01 04:04:32 +0000
commitb3e1e05cfea48f453113947b06d22924012e24ca (patch)
tree3a6bbf25e25f9c2def4e1395c3282090a61dd9b9 /src
parentdfabc98f78931173f02da28b7449a93dd205c8e8 (diff)
downloademacs-b3e1e05cfea48f453113947b06d22924012e24ca.tar.gz
emacs-b3e1e05cfea48f453113947b06d22924012e24ca.zip
* xterm.c (frame_highlight, frame_unhighlight): Don't test
Vx_no_window_manager. BLOCK_INPUT around the border manipulation calls.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/xterm.c b/src/xterm.c
index b24f2f11f5c..3e80d64253e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1245,9 +1245,14 @@ static void
1245frame_highlight (frame) 1245frame_highlight (frame)
1246 struct frame *frame; 1246 struct frame *frame;
1247{ 1247{
1248 if (! EQ (Vx_no_window_manager, Qnil)) 1248 /* We used to only do this if Vx_no_window_manager was non-nil, but
1249 XSetWindowBorder (x_current_display, FRAME_X_WINDOW (frame), 1249 the ICCCM (section 4.1.6) says that the window's border pixmap
1250 frame->display.x->border_pixel); 1250 and border pixel are window attributes which are "private to the
1251 client", so we can always change it to whatever we want. */
1252 BLOCK_INPUT;
1253 XSetWindowBorder (x_current_display, FRAME_X_WINDOW (frame),
1254 frame->display.x->border_pixel);
1255 UNBLOCK_INPUT;
1251 x_display_cursor (frame, 1); 1256 x_display_cursor (frame, 1);
1252} 1257}
1253 1258
@@ -1255,9 +1260,14 @@ static void
1255frame_unhighlight (frame) 1260frame_unhighlight (frame)
1256 struct frame *frame; 1261 struct frame *frame;
1257{ 1262{
1258 if (! EQ (Vx_no_window_manager, Qnil)) 1263 /* We used to only do this if Vx_no_window_manager was non-nil, but
1259 XSetWindowBorderPixmap (x_current_display, FRAME_X_WINDOW (frame), 1264 the ICCCM (section 4.1.6) says that the window's border pixmap
1260 frame->display.x->border_tile); 1265 and border pixel are window attributes which are "private to the
1266 client", so we can always change it to whatever we want. */
1267 BLOCK_INPUT;
1268 XSetWindowBorderPixmap (x_current_display, FRAME_X_WINDOW (frame),
1269 frame->display.x->border_tile);
1270 UNBLOCK_INPUT;
1261 x_display_cursor (frame, 1); 1271 x_display_cursor (frame, 1);
1262} 1272}
1263#else /* ! defined (HAVE_X11) */ 1273#else /* ! defined (HAVE_X11) */