# HG changeset patch
# User Kim F. Storm <storm@cua.dk>
# Date 1097841401 0
# Node ID 33c31d1c5e22f41e6b909e936a6026ad3a24aa8d
# Parent  3a10f875870047763b00dd60351843b6016a7d6d
(x_draw_vertical_border): Do nothing if non-window system.

diff -r 3a10f8758700 -r 33c31d1c5e22 src/xdisp.c
--- a/src/xdisp.c	Fri Oct 15 11:56:26 2004 +0000
+++ b/src/xdisp.c	Fri Oct 15 11:56:41 2004 +0000
@@ -21634,6 +21634,9 @@
      windows (on either side) have...  But we don't :-(
      However, I think this works ok.  ++KFS 2003-04-25 */
 
+  if (!FRAME_WINDOW_P (XFRAME (w->frame)))
+    return;
+
   /* Redraw borders between horizontally adjacent windows.  Don't
      do it for frames with vertical scroll bars because either the
      right scroll bar of a window, or the left scroll bar of its