huohu163 发表于 2006-10-12 13:36:16

使用Fvwm时菜单的问题

我在根窗口中按住鼠标左键可以弹出根菜单,可是一松开左键根菜单就消失了.


设置的鼠标动作是

Mouse 1 R         A                  Popup RootMenu


怎样使根菜单单击后不消失 ??

huohu163 发表于 2006-10-12 17:45:46

自己解决了,呼呼~~~~~~~~~~~
把上面一句改成
Mouse 1 R         A                  Menu RootMenu

就行了.


还有一个问题,在没定义函数的时候
用重新启动Fvwm时很正常,可是我今天下午定义一个实现窗口的菜单后,每一次重启,光标都会变成"xkill的骷髅",要单击以后才能出现载入的pager和buttons等内容.
我把所有的Close Delete 和Destroy都注释掉了还是不行,不知道是怎么回事?



下面是我的.fvwm2rc内容



######################
#
#Gload Setting
##



ImagePath +:/home/linli/.fvwm/wallpaper/
ImagePath +:/home/linli/.fvwm/icons/
ImagePath +:/home/linli/.fvwm/images/




DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmButtons
+ I Module FvwmPager
+ I Exec exec xpmroot /home/linli/.fvwm/icons/1.png


DestroyFunc RestartFunction
AddToFunc RestartFunction
+ I Exec exec xclock -uptime 1-geometry 80x80-1+1
##################
#
#Define RootMenu
#
######
DestroyMenu RootMenu
AddToMenu RootMenu "RootMenu" Title
+         "&Rxvt"         Exec exec rxvt -geometry 80x15+0+0
+         "G&edit"         Exec exec gedit
+         "小企鹅输入法"        Exec exec fcitx &
+        ""                Nop
+        "应用程序"        Popup Application
+        "WindowOpts"        Popup MenuWindowOpts
       
+        "Fvwm工具" Popup FvwmTools

#################
# Define a Submenu
##

DestroyMenu Application
AddToMenu Application
+        "网络"                Popup Internet
+        ""                Nop
+        "办公"        Popup Office
+        ""                Nop
+        "看图工具"        Popup PicTools




DestroyMenu Internet
AddToMenu Internet "互联网" Title
+        "&F浏览器"        Exec exec /usr/local/bin/firefox
+        "&A新闻阅读"        Exec exec akregator
+        "&E电子邮件"        Exec exec evolution
+        "&T网络FTP"        Exec exec gftp


DestroyMenu Office
AddToMenu Office "办公"        Title
+        "Office文字处理"        Exec exec oowriter
+        "Office表格处理"        Exec exec oocalc
+        "Office幻灯"                Exec exec ooimpress
+        "CHM查看器"                Exec exec /usr/local/bin/kchmviewer


DestroyMenu FvwmTools
AddToMenu FvwmTools "Fvwm工具"        Title

+        "fvwm控制台"        Module FvwmConsole -geometry 80x24 -bg black -fg Gold
+        "重启Fvwm"        Restart
+        "退出Fvwm"        Quit


DestroyMenu PicTools
AddToMenu PicTools "看图工具"        Title
+        "K秀图"                Exec exec kuickshow
+        "Gnome之眼"        Exec exec eog



Destroy FuncWindowOpts
AddToFunc FuncWindowOpts
+        I        AddToMenu $0 &Move                Move
+        I        AddToMenu $0 &Resize                Resize
+        I        AddToMenu $0 &Raise                Raise
+        I        AddToMenu $0 &Lower                Lower
+        I        AddToMenu $0 (De)&Iconify        Iconify
+        I        AddToMenu $0 (Un)&Stick                Stick
+        I        AddToMenu $0 (Un)Ma&xize        Maximize
+        I        AddToMenu $0 ""
+        I        AddToMenu $0 &Delete                Delete
+        I        AddToMenu $0 &Close                Close
+        I        AddToMenu $0 &Destroy                Destroy
+        I        AddToMenu $0 ""                        Nop
DestroyMenu MenuWindowOpts
AddToMenu MenuWindowOpts "Window Opts"
FuncWindowOptsMenuWindowOpts
+        "RefreshWindow"                RefreshWindow

DesktopSize 3x2
ClickTime 150
MenuStyle * Font "-adobe-times-bold-r-*-*-14-*-*-*-*-*-*-*:encoding=ISO10646-1"
MenuStyle * PopupDelayed,PopupDelay 160,Animation
MenuStyle * Foreground Gold,BackGround Grey40
MenuStyle *
#MenuStyle * MenuFace TiledPixmap 3.png
Style "xclock" NoTitle,Nohandles,borderWidth 3
Style "FvwmButtons" NoTitle,Nohandles,Sticky
Style "FvwmPager" NoTitle,Sticky
Style "*" BorderWidth 5,HandleWidth 6
Style "*" ForeColor white,BackColor Grey 40
Style "*" HilightFore black,HilightBack Grey 60
Style "FvwmConsole" NoTitle
Style "mplayer" NoTitle,Nohandles
##############
#Define Mouse And Keyboard Opreation
###
Mouse 1 R        A        MenuRootMenu Nop

Mouse 3 R        A        WindowList Nop


Mouse 2 R        A        Menu MenuWindowOpts Nop
Mouse 1 1        A        Menu MenuWindowOpts Nop
Mouse 1 2        A        Close
Mouse 1 4        A        Maximize
Mouse 1 6        A        Iconify
Mouse 1 HTS        M        Move
Mouse 1 F        M        Resize


##############
# Define a Buttons
####

#Buttons's Color
*FvwmButtonsGeometry +350-1
*FvwmButtonsPixmap /home/linli/.fvwm/icons/3.png

*FvwmButtonsFore Gold
*FvwmButtonsBack Black


*FvwmButtonsFont 8x10

*FvwmButtonsRows 1
*FvwmButtonsColumns 8

*FvwmButtons (Title "GIMP",icon gimp.xpm,Action 'Exec gimp')
*FvwmButtons (Title "StarDict",icon stardict.png,Action 'Exec stardict')
*FvwmButtons (Title "BitStrom",icon gnome-terminal.png,Action 'Exec /usr/local/bin/bitstormlite&')
*FvwmButtons (Title "Xpdf",icon xpdf.png,Action 'Exec xpdf')
*FvwmButtons (Title"LumaQQ",icon lumaqq.png,Action 'Exec /usr/local/bin/lumaqq')
*FvwmButtons (Title "电影",icon grun.png,Action 'Exec totem')
*FvwmButtons (Title "锁定",Action 'Exec xlock')
*FvwmButtons (Title "Mplayer",icon mplayer.xpm,Action 'Exec gmplayer -really-quiet -nofs')

ButtonStyle All -- UseTitleStyle
ButtonStyle All ActiveDown VGRadient 8 palevioletred
ButtonStyle 2 16 20x20@1 30x20@1 50x40@1 70x20@1 80x20@1 80x30@0 60x50@0 80x80@0 70x80@0 50x60@0 30x80@0 20x80@0 20x70@0 40x50@1 20x30@0 20x20@1
ButtonStyle 4 5 25x25@1 25x75@1 75x75@0 75x25@0 25x25@1
ButtonStyle 6 2 80x76@0 20x76@1
页: [1]
查看完整版本: 使用Fvwm时菜单的问题