Re: FVWM: Remapping Alt+Tab

From: Richard Curnow <Richard.Curnow_at_st.com>
Date: Tue, 4 Dec 2001 16:57:41 +0000

On Tue, Dec 04, 2001 at 05:02:55PM +0100, uwe.pross_at_gmx.net wrote:
> Richard Curnow wrote:
> >
> > I tried
> >
> > MenuStyle WindowList SelectOnRelease
> >
> > (since the manual says not to specify a keyname to remove the Alt feature.)
> >
> > My Alt+Tab menu still popped down, and also, it didn't have the font,gradient
> > etc that I'd configured elsewhere via MenuList * entries. So I tried both of
> > these (the 2nd guessing that I have a missing arg or something):
> >
> > MenuStyle * SelectOnRelease
> > MenuStyle * SelectOnRelease ""
> >
> > both of which made the menu appearance right, but didn't make the popping down
> > work. Have I got the syntax wrong, or is something else broken?
>
> Have a try with
>
> MenuStyle WindowList SelectOnRelease none
>
> which worked in my fvwm-2.4.3. It removes all SelectOnRelease events for
> WindowList. (The man page might be not right in this case.)
> To get the right style for WindowList you need to declare it for WindowList
> explicitly. Like:
>
> MenuStyle WindowList Font -*-lucida-medium-r-*-*-12-*-*-*-*-*-*-*
> MenuStyle WindowList MenuColorset 5
> MenuStyle WindowList ActiveColorset 6
> MenuStyle WindowList HilightBack $[bg.cs6]
> MenuStyle WindowList DoubleClickTime 200
> MenuStyle WindowList Hilight3DThin
>
> Just using:
>
> MenuStyle * ... might be not enough.
>

Still no luck with this :-( So, I untarred the source and began exploring.
After a bit of study and a few experiments printing status to stderr, I've
found that the following line does what I want:

    Key Tab A M WindowList Root c c CurrentDesk, NoGeometry, SelectOnRelease Meta_R

where I've just picked Meta_R because at least it's not Meta_L (which is the
Alt key I want to use) - I suppose anything that's not Meta_L will work.

There is certainly some SelectOnRelease processing in the MenuStyle handler,
but that didn't want to play ball. I printed out the 'before' and 'after'
keycode values and it was showing zero for both for some reason. Maybe there
is unitialised state for the 'before' value - I'd have expected it to be the
keycode for Meta_L (the compiled in default).

Anyway, problem solved (for me anyway). Thanks to those who sent me
suggestions to try.

Richard

-- 
Richard \\\ SuperH Core Architect  \\\                 .... At home ...
Curnow  /// Richard.Curnow_at_st.com  ///     richard_at_rrbcurnow.freeuk.com
        \\\ http://www.superh.com/ \\\ http://www.rrbcurnow.freeuk.com/
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Dec 04 2001 - 10:58:27 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST