Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!hplabs!hpfcdc!hpfcdq!toml From: toml@hpfcdq.HP.COM (Tom LaStrange) Newsgroups: comp.windows.x Subject: Re: Twm fix/improvement enclosed Message-ID: <890031@hpfcdq.HP.COM> Date: 15 Mar 89 03:30:59 GMT References: <12269@watdragon.waterloo.edu> Organization: Hewlett-Packard - Fort Collins, CO Lines: 35 > Another improvement from a satisfied twm user. What follows is a shar > package of four diff -cb outputs relative to the twm distribution that > came with XV11R3. I would prefer to do this via Tom LaStrange, but > either my mail doesn't get through to him or he's too busy to deal with > it (I know the feeling). Sorry for not responding. I did get your mail. I have been busy. > 2. A new bell/whistle. I've added a twm variable StartIconified, which > takes a list of window names like AutoRaise et al. Windows with this > attribute, when mapped, have their inital state in the wm_hints forced > to IconicState. I put this in because GNUmacs doesn't have a -iconic > option, and xpostit sort of does but I'm not smart enough to figure out > how to make the plaid window come up ordinary but the PostItNotes be > iconified via the resource database. Since then, I use it for other > windows too; it's arguable that you might want to make this decision in > the window manager anyhow. OK, I've put your stuff into the "official" version, but I think there may be a problem. > - /* Force initial iconic state if required */ > - if (LookInList(START_ICONIFIED, tmp_win->full_name, &tmp_win->class)) > - tmp_win->wmhints->initial_state = IconicState; You are assuming here that tmp_win->wmhints points to something. This will likely cause problems if you run a client that does not specify wmhints. -- Tom LaStrange Hewlett Packard Co. ARPA: toml%hpfcla@hplabs.hp.com Graphics Technology Division UUCP: hplabs!hpfcla!toml Fort Collins, CO