From xemacs-m  Fri Apr 11 21:30:09 1997
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id VAA14896
	for <xemacs-beta@xemacs.org>; Fri, 11 Apr 1997 21:30:08 -0500 (CDT)
Received: (from steve@localhost)
	by altair.xemacs.org (8.8.5/8.8.5) id TAA21943;
	Fri, 11 Apr 1997 19:42:59 -0700
Mail-Copies-To: never
To: xemacs-beta@xemacs.org
Subject: Re: 20.1-b14 still crashes at startup on background pixmap
References: <25019.860769657@kocrsw12> <QQckvw06159.199704112006@crystal.WonderWorks.COM>
X-Url: http://www.miranova.com/%7Esteve/
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Kyle Jones's message of Fri, 11 Apr 1997 16:06:50 -0400 (EDT)
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
Date: 11 Apr 1997 19:42:56 -0700
Message-ID: <m27mi9otan.fsf@altair.xemacs.org>
Lines: 30
X-Mailer: Gnus v5.4.44/XEmacs 20.1(beta15)

> Mike Scheidler writes:

> bomb when Emacs.default.attributeBackgroundPixmap resource set.

O.K.  I think I have a fix.  Please try this patch.

Index: src/glyphs-x.c
===================================================================
RCS file: /usr/local/xemacs/xemacs-20.0/src/glyphs-x.c,v
retrieving revision 1.10
diff -u -r1.10 glyphs-x.c
--- glyphs-x.c	1997/04/11 02:10:32	1.10
+++ glyphs-x.c	1997/04/12 02:32:52
@@ -2589,7 +2589,11 @@
       else
         {
 	  Lisp_Object frame = DEVICE_SELECTED_FRAME(XDEVICE(device));
-	  Lisp_Object window = FRAME_SELECTED_WINDOW(XFRAME(frame));
+	  Lisp_Object window = Qnil;
+
+	  if (!NILP(frame)) {
+	    window = FRAME_SELECTED_WINDOW(XFRAME(frame));
+	  }
           assert (COLOR_SPECIFIERP (value));
           value = Fspecifier_instance (value, window, Qnil, Qnil);
         }

-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.

