[comp.windows.x] Broken AutoRaise mode in TWM

aperez@caribe.prime.com (Arturo Perez x6739) (12/30/89)

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