Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!bloom-beacon!dont-send-mail-to-path-lines From: converse@expo.lcs.mit.EDU Newsgroups: comp.windows.x Subject: Re: twm name matching too lax Message-ID: <9104111831.AA07464@excess.lcs.mit.edu> Date: 11 Apr 91 18:31:51 GMT References: <11992@dog.ee.lbl.gov> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 20 > In my .twmrc file, I have named some clients for which I don't want a title > bar. The problem is that twm only requires that the first n characters of > the client/class in the list match the name of the client/class one wishes > to list. For example, in my list for NoTitle, I have the client "xcal", > but when I start up "xcalc", it matches the "xcal" in the list and it doesn't > get a title bar. It wouldn't matter if I use the class name (XCal), because > the first four letters of the class for xcalc also match XCal. Right. We've received bug reports on this. The string prefix matching is a bug, not a feature. > Is it possible to simply change the code in LookInList (list.c) to do > a "strcmp" instead of a "strncmp", Yes, that is the fix. Donna Converse converse@expo.lcs.mit.edu