Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!snorkelwacker!spdcc!merk!alliant!linus!cvbnet!caribe.prime.com!aperez From: aperez@caribe.prime.com (Arturo Perez x6739) Newsgroups: comp.windows.x Subject: Broken AutoRaise mode in TWM Message-ID: <306@cvbnet.Prime.COM> Date: 29 Dec 89 21:04:51 GMT Sender: postnews@cvbnet.Prime.COM Reply-To: aperez@caribe.prime.com (Arturo Perez x6739) Distribution: usa Organization: Prime Computervision, Bedford MA Lines: 35 I like autoraise mode for some things (like emacs). Much to my chagrin, the "almost official" twm has it broken. Neither through menu selection (i.e. f.autoraise) nor variable (i.e. AutoRaise { "emacs" }) does it work. I took the liberty of looking at the code for the Enter/Leave notify events. I found this strange little variable "enter_flag." It was used like so events.c, line 1549 if (enter_flag == FALSE && Tmp_win->auto_raise) { XRaiseWindow(dpy, Tmp_win->frame); enter_flag = TRUE; } so I got rid of that funny little variable like so: if (Tmp_win->auto_raise) { XRaiseWindow(dpy, Tmp_win->frame); enter_flag = TRUE; } Now AutoRaise works again. Have I done something terribly wrong? BTW, UsePPosition hangs twm in my version (R4_beta). And the IconRegion variable doesn't seem to work at all. At least, my understanding is that for icons which haven't specified a position they will be placed in the IconRegion. Well, they just hang around where I iconify them. Arturo Perez ComputerVision, a division of Prime aperez@cvbnet.prime.com Too much information, like a bullet through my brain -- The Police