I'm using fvwm 2.5.13 built from source on Fedora Core 4, and I have one of
the strangest problems I've ever seen:

I've been testing remote X sessions using the NX software from
www.nomachine.com, and from one (and only one so far) remote machine, my
.fvwmrc2 file doesn't seem to get parsed correctly.

Instead of the menus I define, I get the default menu, and my mouse bindings
for the various buttons on the window decorations don't seem to happen. It
acts like it stops parsing the file somewhere after I turn off most of the
default bindings and before it adds my custom ones (which makes it kinda
hard to use).

If I run fvwm2 in an xterm, no errors show up on stdout or anything, but it
still doesn't work.

The only thing really different on the machine where remote sessions don't
seem to work is a fancy kensington multi-button usb trackball instead of a
normal mouse, but if I run xev, it appears to show the expected buttons
clicks happening when I click the buttons, so it is hard to see how that
could be the problem. In fact it is hard to imagine any reason it would
pick just one machine to not work on (this same .fvwmrc2 file works fine
on the native display when I'm not remote, and on at least two other
systems I've tried remote sessions from - it is only the system I use
most of the time where it doesn't work (naturally :-)).

I'll append my .fvwmrc2 file in case it hides any clues (but it is
intentionally pretty minimal):

# First remove annoying default behavior

# Remove most pre-defined default key/mouse bindings
#
Key F1 R A -
Key Tab A M -
Key Escape A MC -
Mouse 0 R N -
Mouse 1 TS A -
Mouse 1 F  A -

# Don't go changing desktops on me just 'cause I get the mouse near the edge
# of the screen.
#
EdgeThickness 0

# Now start adding my own behavior

ImagePath $HOME/profile/bitmaps:+

# No icon clutter - if I want a window back, I'll fetch it from the
# window list. Also use a nice shade of green for the window with the focus.
# Also SkipMapping prevents me from being yanked back to a different desktop
# just because some long process finished and a new popup appeared - I'll
# see it when I wander back to that window. And the best reason of all to
# go to the dev version of fvwm - the MoveByProgramMethod to make fvwm
# as stupid as all other window managers when it comes to positioning.
#
Style * NoIcon, \
        HilightBack "#4b638c4c8276", \
        BackColor "#939393", \
        DecorateTransient, \
        SkipMapping, \
        MoveByProgramMethod UseGravity

# I want NightLaunch to be sticky
#
Style Nlaunch Sticky

# Windows with ROOT in the title should have red borders, so I'll notice and
# hopefully avoid doing any drastic or stupid thing.
#
Style *ROOT*  HilightBack red, \
              BackColor maroon

# I can't seem to convince Xnest to use an title other than Xnest, so since
# I use Xnest for root login sessions, call it red borderland as well
#
Style *Xnest*  HilightBack red, \
               BackColor maroon

# Mouse 1 in root context is for running applications
#
AddToMenu "Applications" "Applications" Title
 + "Xterm" Exec exec xterm
 + "Night Launch" Exec exec nlaunch -ns

Mouse 1 R N Menu "Applications"

# Global window manager operations are on button 3 in root context
# (and I have all other root menus in here as well so I really only
# need button 3).
#
AddToMenu "Select Desktop" "Select Desktop" Title
 + "Zero (Home)" GotoDesk 0 0
 + "One" GotoDesk 0 1
 + "Two" GotoDesk 0 2
 + "Three" GotoDesk 0 3
 + "Next Desk" GotoDesk 1 0 0 3
 + "Prev Desk" GotoDesk -1 0 0 3

AddToMenu "Window Manager" "Window Manager" Title
 + "Switch Desktop" Popup "Select Desktop"
 + "Window List" WindowList Mouse 0 0 NoDeskSort
 + "Applications" Popup "Applications"
 + "" Nop
 + "Restart Fvwm" Restart
 + "Exit Fvwm" Quit

Mouse 3 R N Menu "Window Manager"

# Also allow desktop switching with keys in root context
#
Key Right R N GotoDesk 1 0 0 3
Key KP_6 R N GotoDesk 1 0 0 3
Key Left R N GotoDesk -1 0 0 3
Key KP_4 R N GotoDesk -1 0 0 3
Key Home R N GotoDesk 0 0
Key KP_7 R N GotoDesk 0 0

# Button 2 in root context is the list of windows
#
Mouse 2 R N WindowList Mouse 0 0 NoDeskSort

# Button 2 in the title bar raises or lowers the window
#
Mouse 2 T N RaiseLower

# Far right title button is close request
#
Mouse 1 2 N Close
ButtonStyle 2 Pixmap close.xpm

# Next to far right is maximize/restore button
#
Mouse 1 4 N Maximize
ButtonStyle 4 Pixmap maximize.xpm

# Next to that is iconify (minimize) button.
#
Mouse 1 6 N Iconify
ButtonStyle 6 Pixmap minimize.xpm

# Over on far left we have the menu of window specific operations
#
AddToMenu "Close Options" "Close Options" Title
 + "Ask to Close" Close
 + "Tell to Close" Delete
 + "Close with Extreme Prejudice" Destroy

AddToMenu "Move To Desktop" "Move To Desktop" Title
 + "Zero (Home)" MoveToDesk 0 0
 + "One" MoveToDesk 0 1
 + "Two" MoveToDesk 0 2
 + "Three" MoveToDesk 0 3

AddToMenu "Window Operations" "Window Operations" Title
 + "Stick/Unstick" Stick toggle
 + "Move To Desktop" Popup "Move To Desktop"
 + "Minimize" Iconify
 + "Maximize/Restore" Maximize
 + "Close Options" Popup "Close Options"

Mouse 1 1 N Menu "Window Operations"
ButtonStyle 1 Pixmap menu.xpm

--
>>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
      email: [EMAIL PROTECTED] icbm: Delray Beach, FL      |
<URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+


Reply via email to