Hello,

I'm completely new to fvwm and I try to make some simple configuration
based on this post: http://fvwm.lair.be/viewtopic.php?t=188

All works fine at start, but after a while (5 minutes of work), problems occur:
- if I click on any window button (close, maximize, iconify) - no reaction
- if I click mouse 2 on titlebar - no reaction (should popup menu)
- if I press Win+R - no reaction (should open terminal modified as run dilaog)

Restarting fvwm doesn't solve the problem, I have to restart xsession
(logout) to get it working again

All another (afaik) work fine - I can move windows using mouse, main
menu pops up correctly, etc.

I'm using gentoo (2.6.15 vanilla sources), abut it also happened on SuSE 10

My fvwm version is: 2.5.12 (but I also tested it on 2.5.16 - same problem)

My configuration is at the end of this message

Can you help me to find what's wrong? Is there a way to make fvwm to
log more information somewhere (I found only something in
~/.xsession-errors - problems with fonts encoding which are not
related)

Thanks in advance

Lukas Lipavsky
lukas dot lipavsky at gmail dot com

------- ~/.fvwm/config ------
#based on http://fvwm.lair.be/viewtopic.php?t=188


# where to search for images and icons
# the '+' means add original value
ImagePath /usr/share/pixmaps:+

# Start Function - This function is run when fvwm is started or restarted
DestroyFunc StartFunction

AddToFunc StartFunction
+ I Exec exec fvwm-root --retain-pixmap $[FVWM_USERDIR]/wallpaper
+ I Module FvwmButtons FvwmButtons-Panel




#
# global styles here
#

SetEnv  PagerCSet               10
SetEnv  PagerBalloonCSet        11
SetEnv  PagerHiliteCSet         12
SetEnv  PagerWindowCSet         13
SetEnv  NormalCSet              0
SetEnv  FocusCSet               1
SetEnv  MenuCSet                14

Style "*" MinOverlapPlacement
Style "*" BorderWidth 2, HandleWidth 2  # default window borders
Style "*" Colorset $[NormalCSet]
Style "*" HilightColorset $[FocusCSet]
Style "*" ClickToFocus

EdgeResistance 300 5



#
# Colorsets
#

# The default one
Colorset $[NormalCSet]           Foreground      black,          \
                                 Background      rgb:90/80/90,   \
                                 Hilight         rgb:c5/b9/c5,   \
                                 Shade           rgb:46/41/46

# For focused windows
Colorset $[FocusCSet]           Foreground      purple,   \
                                Background      black,          \
                                Hilight         rgb:c5/c5/b9,   \
                                Shade           rgb:46/46/41

Colorset $[PagerCSet]           fg purple,              \
                                pixmap $[FVWM_USERDIR]/wallpaper,   \
                                hi red,                 \
                                sh gold
Colorset $[PagerBalloonCSet]    fg purple,              \
                                bg black,               \
                                hi rgb:c5/b9/c5,        \
                                sh rgb:46/41/46
Colorset $[PagerHiliteCSet]     fg red, bg blue, hi gold, sh green
Colorset $[PagerWindowCSet]     fg red, bg blue, hi gold, sh green
Colorset $[MenuCSet]            Foreground      purple,         \
                                Background      black,          \
                                Hilight         rgb:c5/c5/b9,   \
                                Shade           rgb:46/46/41

# Win+R - run command
Style fvwm-run-dialog FPGrabFocus, FPReleaseFocus
Key R A 4 Exec exec $[FVWM_USERDIR]/scripts/run-dialog

#
# Windows buttons
#
Mouse 1 1 N Close
Mouse 1 2 N Maximize
Mouse 1 4 N Iconify

#
# Menu
#
MenuStyle * MenuColorset $[MenuCSet]

DestroyMenu MenuFvwmRoot
AddToMenu MenuFvwmRoot 'welcome to $[HOSTNAME]' Title
+ 'Shell'       InvokeTerminal
+ 'Web'         Exec exec firefox
+ 'Tools'       Popup ToolsMenu
+ 'FVWM'        Popup FvwmMenu
+ 'Quit'        Popup QuitMenu

DestroyMenu ToolsMenu
AddToMenu ToolsMenu 'Tool Box' Title
+ 'The &Gimp'   Exec exec gimp-2.0
+ 'Quod Libet'  Exec exec quodlibet
+ 'OOo'         Exec exec ooffice
#+ '' Nop
# + '&Doom III' InvokeDoom3
#+ '&Fallout 2' Exec exec fallout2
#+ '&Alpha Centauri' Exec exec smacpack
#+ '&Deus Ex' Exec exec xdeus

DestroyMenu FvwmMenu
AddToMenu FvwmMenu 'FVWM' Title
+ '&Identify' Module FvwmIdent
+ '&Move' Move
+ '&Resize' Resize
+ 'R&aise' Raise
+ '&Lower' Lower
+ '(De)&Iconify' Iconify
+ '(Un)&Stick' Stick
+ '&Maximize' Maximize
+ '' Nop
+ '&Close' Close
+ '&Delete' Delete
+ '&Destroy' Destroy

Mouse 2 T N Menu FvwmMenu

DestroyMenu QuitMenu
AddToMenu QuitMenu 'Quit Or Restart?' Title
+ '&Restart' Restart
+ '' Nop
+ '&Quit' Quit


#
# Pager settings (the pager itself is swallowed in buttons)
#
DesktopSize 2x2
DestroyModuleConfig FvwmPager: *
*FvwmPager: Colorset * $[PagerCSet]                     # background
*FvwmPager: BalloonColorset * $[PagerBalloonCSet]       # tool tips
*FvwmPager: HilightColorset * $[PagerHiliteCSet]
*FvwmPager: HilightColorset * $[PagerWindowCSet]

*FvwmPager: Font "none"         # no in-window labels
*FvwmPager: SloppyFocus         # focus window under mouse pointer
*FvwmPager: Balloons Pager      # tool-tip popups with the window title
*FvwmPager: Separators        # turn on the lines separating desks
*FvwmPager: NoDeskHilight       # stop the current desk being blotted out

# Buttons
# alias for our config is FvwmButtons-Panel - thus we can have
# more config and specify which to delete, ...
DestroyModuleConfig FvwmButtons-Panel: *

style "FvwmButtons-Panel"       \
    NoTitle,                  \
    BorderWidth 0,          \
    handlewidth 0,          \
    sticky,                 \
    WindowListSkip,         \
    StaysOnTop

*FvwmButtons-Panel: Colorset $[NormalCSet]
*FvwmButtons-Panel: ActiveColorset $[FocusCSet]
*FvwmButtons-Panel: Columns 1

*FvwmButtons-Panel: (1x1 Icon 'terminals.png'     \
    Action(Mouse 1) 'Function InvokeTerminal',           \
    Action(Mouse 3) 'Function InvokeConsole'          \
)

*FvwmButtons-Panel: (1x1 Icon 'package_network.png', \
    Action(Mouse 1) 'Exec exec firefox'               \
)

*FvwmButtons-Panel: (1x1 Icon 'thunderbird.xpm', \
    Action(Mouse 1) 'Exec exec thunderbird'               \
)


*FvwmButtons-Panel: (1x1 Icon 'supertux.png'          \
    Action(Mouse 1) 'Module FvwmForm FvwmForm-QuitVerify',  \
    Action(Mouse 3) 'restart'                               \
)

*FvwmButtons-Panel: (Swallow "FvwmPager" "FvwmPager 0 0")

# term invoke function (it's a bit complicated, so separate it here)
DestroyFunc InvokeTerminal
AddToFunc InvokeTerminal
# tint white is required to make -sh 50 work
+ I Exec exec urxvt -tr -fg cyan -fn 8x16 +sb -sl 1000 -ls -sh 50 -tint white

# Fvwm console invoke function
DestroyFunc InvokeConsole
AddToFunc InvokeConsole
+ I Module FvwmConsole -terminal urxvt -tr +sb -fg red -sh 40
-geometry 180x12+0-1

Reply via email to