jkh@dana.UUCP (Jordan K. Hubbard) (12/15/87)
# This is a shell archive. Remove anything before this line, then # unpack it by saving it in a file and typing "sh file". (Files # unpacked will be owned by you and have default permissions.) # # This archive contains: # uwm.new.patch3 echo x - uwm.new.patch3 sed 's/^ //' > "uwm.new.patch3" << '//E*O*F uwm.new.patch3//' Date: Mon, 14 Dec 87 18:00 PST From: Jordan Hubbard <jkh@violet.berkeley.edu> Subject: uwm.new patch #3, fix IconName handling. DESCRIPTION: Was ignoring the status of XGetIconName, which caused coredumps if not set. FIX: *** uwm.new/TitleBar.c Mon Dec 14 18:14:37 1987 --- uwm.new/TitleBar.c.new Mon Dec 14 18:14:52 1987 *************** *** 151,159 **** tinfo->name = GetTitleName(w); /* Make titlebar "frame" inherit characteristics of victim */ XStoreName(dpy, foster, tinfo->name); ! XGetIconName(dpy, w, &icon_name); ! XSetIconName(dpy, foster, icon_name); ! free(icon_name); wm_hints = XGetWMHints(dpy, w); XSetWMHints(dpy, foster, wm_hints); XFree(wm_hints); --- 151,160 ---- tinfo->name = GetTitleName(w); /* Make titlebar "frame" inherit characteristics of victim */ XStoreName(dpy, foster, tinfo->name); ! if (XGetIconName(dpy, w, &icon_name)) { ! XSetIconName(dpy, foster, icon_name); ! free(icon_name); ! } wm_hints = XGetWMHints(dpy, w); XSetWMHints(dpy, foster, wm_hints); XFree(wm_hints); //E*O*F uwm.new.patch3// exit 0