Re: FVWM: MS Windows-like window switching

From: Markus Gutschke <gutschk_at_uni-muenster.de>
Date: 26 Mar 1997 14:27:10 +0100

Dan Niles <dan_at_more.net> writes:
> > The point is that the previously used window becomes the second item in
> > the window list. This makes it very convenient to switch between two
> > windows without having to cycle through all of them (which seems to be
> > the case in all window managers I've used).
> >
>
> If you use ClickToFocus you get this behavior. ClickToFocus is also the
> way focus in done in MS Windows. To use ClickToFocus add the style line:
>
> Style "*" ClickToFocus
>
> To have a key that works like Alt+Tab, create a binding like:
>
> Key F8 A N Prev [] FlipFocus

I seems that most people do not want to switch to ClickToFocus mode,
just in order to get a working version of FlipFocus. In current
releases of Fvwm the handling of the window history is broken, when
used in conjunction with MouseFocus. A complete and satisfying bug-fix
is rather difficult, but if all you care for is FlipFocus, then you
can use the patch that I posted a little while ago:

--- events.c.orig Fri Mar 7 14:58:06 1997
+++ events.c Fri Mar 7 14:47:03 1997
_at_@ -1117,12 +1117,16 @@

   if(!(Tmp_win->flags & ClickToFocus))
     {
+#if 0
       if(Scr.Focus != Tmp_win)
        {
          SetFocus(Tmp_win->w,Tmp_win,0);
        }
       else
        SetFocus(Tmp_win->w,Tmp_win,0);
+#else
+ SetFocus(Tmp_win->w,Tmp_win,1);
+#endif
     }
   if (Scr.ColormapFocus == COLORMAP_FOLLOWS_MOUSE)
   {


-- 
Markus Gutschke          Internet:       gutschk_at_math.uni-muenster.de
Schlage 5a               PGP public key: finger -l gutschk_at_math.uni-muenster.de
D-48268 Greven-Gimbte
Germany                            >>> I prefer encrypted e-mail <<<


--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Mar 26 1997 - 21:07:04 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST