Commit b3e1e05c authored by Jim Blandy's avatar Jim Blandy
Browse files

* xterm.c (frame_highlight, frame_unhighlight): Don't test

	Vx_no_window_manager.  BLOCK_INPUT around the border manipulation
	calls.
parent dfabc98f
...@@ -1245,9 +1245,14 @@ static void ...@@ -1245,9 +1245,14 @@ static void
frame_highlight (frame) frame_highlight (frame)
struct frame *frame; struct frame *frame;
{ {
if (! EQ (Vx_no_window_manager, Qnil)) /* We used to only do this if Vx_no_window_manager was non-nil, but
XSetWindowBorder (x_current_display, FRAME_X_WINDOW (frame), the ICCCM (section 4.1.6) says that the window's border pixmap
frame->display.x->border_pixel); and border pixel are window attributes which are "private to the
client", so we can always change it to whatever we want. */
BLOCK_INPUT;
XSetWindowBorder (x_current_display, FRAME_X_WINDOW (frame),
frame->display.x->border_pixel);
UNBLOCK_INPUT;
x_display_cursor (frame, 1); x_display_cursor (frame, 1);
} }
...@@ -1255,9 +1260,14 @@ static void ...@@ -1255,9 +1260,14 @@ static void
frame_unhighlight (frame) frame_unhighlight (frame)
struct frame *frame; struct frame *frame;
{ {
if (! EQ (Vx_no_window_manager, Qnil)) /* We used to only do this if Vx_no_window_manager was non-nil, but
XSetWindowBorderPixmap (x_current_display, FRAME_X_WINDOW (frame), the ICCCM (section 4.1.6) says that the window's border pixmap
frame->display.x->border_tile); and border pixel are window attributes which are "private to the
client", so we can always change it to whatever we want. */
BLOCK_INPUT;
XSetWindowBorderPixmap (x_current_display, FRAME_X_WINDOW (frame),
frame->display.x->border_tile);
UNBLOCK_INPUT;
x_display_cursor (frame, 1); x_display_cursor (frame, 1);
} }
#else /* ! defined (HAVE_X11) */ #else /* ! defined (HAVE_X11) */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment