>>>>> On Sun, 5 Aug 2001, Dominik Vogt wrote:

  Dominik> On Fri, Aug 03, 2001 at 05:19:06PM -0500, fvwm-bug wrote:

  +> FVWM Bug Tracking notification

  +> new message incoming/753

  +> Message summary for PR#753 From: [EMAIL PROTECTED] Subject: SloppyFocus
  +> sometimes won't refocus properly Date: Fri, 03 Aug 2001 17:19:05 -0500 0
  +> replies 0 followups

  +> Full_Name: Pete Gelbman Version: 2.4.0 CVS_Date:  OS: Solaris 2.6
  +> X_Server: ? Submission from: (NULL) (199.74.167.132)

  +> I've used SloppyFocus as my default window focus for a long time. Since
  +> our sys-admin upgrading to 2.4 recently (and after migrating my .fvwm2rc
  +> of course) I notice that after changing desktops, when moving my mouse
  +> quickly back into the window that last had the focus before I switched
  +> desktops, focus does not aquire properly. I have to move my mouse out of
  +> the window and back in again so make it work. I'm now using MouseFocus as
  +> my default window focus style and it work fine that way.

  Dominik> Could you try to give me detailed instructions on how to reproduce
  Dominik> this?  The problem seems to be timing related and I don't know
  Dominik> exactly what I have to do (please include your config file and also
  Dominik> describe where the used windows are).

Hi Dominic,

Thanks for the response. Two things:

- First I need to amend my initial report - I thought problem went away when
changing to MouseFocus instead of SloppyFocus but actually it remained the
same. 

- 2nd, I think I found the problem - when upgrading my .fvwm2rc to new 2.4 
format, I also decided to change my "ClickTime" from my old setting of 350 to 
150 for some reason.  I guess I saw a 150ms in one of the samples and thought 
"quicker must be better". Anyhow I diffed my old config and new config today 
and noticed this. I changed my ClickTime back to my old setting of 350 and the 
problem went away. So, it was my own config issue, but I think the quicker 
time may definitely be triggering a timing problem, as you mentioned. 
Especially since the value causing me trouble is the default...? Or maybe this 
whole thing is still caused by some weirdness in my config file that I can't 
see...If so sorry, about the hassle...

Anyway, attached is my .fvwm2rc file. In this version, I've left ClickTime set 
to 150 so you can just source and hopefully see the issue. Here are some more 
details to try to reproduce the problem:

- I'm working with several windows open on on desktop 0 0. 

- Now I want to change to desktop 1 0. So I click my mouse on desktop 1 0 in 
my pager. I go there, do some work in a few diff windows - everything is fine.

- Now I want to go back to my original destop  0 0. So I click my mouse on 
desktop 0 0 to back. I go there but when I position my mouse over a window the 
windows doesn't get focused. The only way to get it focused is to move my 
mouse out of the windows and back in.

Note: this doesn't happen all the time. I assumed this was due to feature 
changes or some issue with my new .fvwm2rc, but I poked around for a long time 
and can't see any problems...






#
# $HOME/.fvwm2rc
# Pete Gelbman 
#
# - Fvwm2 initialization file, version 2.4+
#
###########################################################################

# This works for both Solaris and Linux. Menu items are not guarenteed
# to work in both environments, but thats worth the trade off maintaining 
# 2 versions.
 
##############################################################
# Paths (colon-separated list, just like regular unix PATH)
##############################################################

# Modules
#ModulePath      /opt/local/lib/fvwm/2.x

# Icons & Pixmaps
ImagePath 
/home/pete/lib/pix/icons:/usr/share/icons/large/:/usr/local/X11/include/bitmaps:/usr/local/X11/include/mini-icons:+

ImagePath 
/home/pete/lib/pix/mini-icons:/usr/local/X11/include/pixmaps:/usr/local/X11/include/mini-icons:+

####################
# Virtual Desktop
####################

DeskTopSize     2x2

# Default edge scrollng suff
#EdgeResistance 250 10
#EdgeScroll     100 100

# I like to disable all the edge crap
EdgeScroll 0 0
EdgeThickness 0
EdgeResistance 0 0


####################################################
# Windows behaviour, decoration, style definitions
####################################################

# Set colormap to be window that mouse is in (default)
ColormapFocus FollowsMouse

# Set color of the 'rubber-band' window-borders when moving/resizing windows
#XORvalue 200 # This doesn't seem to to work under on NCD boxes

# Make our windows snap-up against other windows and make icons snap
# up against other icons
SnapAttraction 20 SameType

# If a window occupies less than n% of the screen, draw it opaque
OpaqueMoveSize 5

# TitleBar button styles - uses our personal pixmap lib
ButtonStyle 1 Pixmap mini.windows.xpm           # Window-Ops
ButtonStyle 10 Pixmap mini.lower2.xpm           # Iconify
ButtonStyle 8 Pixmap mini.maximize-horiz.xpm    # Maximize/Minimize horiz
ButtonStyle 6 Pixmap mini.maximize-vert.xpm     # Maximize/Minmize vert
ButtonStyle 4 Pixmap mini.resize3.xpm           # Maximize/Minimize full
ButtonStyle 2 Pixmap mini.x.xpm                 # Close

# Titlebar style
TitleStyle ActiveUp Vgradient 16 slateblue2 slateblue4 -- flat
TitleStyle ActiveDown Vgradient 16 slateblue2 red -- flat
TitleStyle Inactive Vgradient 16 bisque3 bisque4 -- flat
#TitleStyle LeftJustified height 18 # Justifies title string, I like default 
center

# Menu style
MenuStyle * Mwn # Mwm, Fvwm or Win
MenuStyle * Foreground black, Background red
MenuStyle * Greyed gray70, ActiveFore white
MenuStyle * HilightBackOff, Hilight3DOff
MenuStyle * Font -Adobe-Helvetica-Bold-O-Normal--14-140-75-75-P-82-ISO8859-1
MenuStyle * MenuFace DGradient 64 bisque3 slateblue2
MenuStyle * Animation

# Window styles - basic defaults to be used for all windows
Style * TileCascadePlacement # this is default and seems to work best
Style * Color black/bisque3
Style * HilightFore white, HilightBack slateblue2
Style * Font -*-helvetica-bold-r-*-*-14-*-*-*-*-*-*-*
Style * IconFont fixed
Style * Icon default.xpm
Style * IconBox 80x700-1+140 # defines a box where our icons get minimized
Style * MWMButtons, MWMFunctions, MWMDecor, HintOverride
Style * BorderWidth 5, HandleWidth 7
Style * DecorateTransient, StickyIcon
Style * NoPPosition
Style * SloppyFocus, # Default is MouseFocus
Style * MouseFocusClickRaises   # Raise windows by clicking anywhere in the 
window

# Define a barebones style template - handy for xbiff, et al 
Style Naked WindowListSkip, Sticky, NoTitle, NoHandles, BorderWidth 0

# Styles for internal fvwm stuff
Style "Fvwm*"           UseStyle Naked
Style "Fvwm*"           BorderWidth 0, CirculateSkipIcon
Style "Fvwm*"           ClickToFocus
Style "FvwmConsole"     WindowListHit,  Slippery, Title, BorderWidth 5
#Style "FvwmPager"       StaysOnTop 
Style "FvwmButtons"     UseStyle Naked
Style "FvwmButtons"     BorderWidth 0, CirculateSkip, StaysOnTop
Style "FvwmButtons"     Icon toolbox.xpm
Style "FvwmTalk"        Icon toolbox.xpm, WindowListHit,  Slippery, Title, 
BorderWidth 5
Style "FvwmWinList"     StaysOnTop

# Application-specific style overides
# Note: Some apps such as Emacs & Netscape don't obey - xpm stuff, so
# fvwm2 *Placement options don't work with them
Style "xbiff"           UseStyle Naked, ClickToFocus
Style "xclock"          UseStyle Naked, ClickToFocus, BorderWidth 3
Style "xload"           UseStyle Naked, ClickToFocus, BorderWidth 3
Style "xcalc"           Icon xcalc.xpm, ManualPlacement
Style "xman"            Icon xman.xpm, NoButton2
Style "xmag"            Icon mag_glass.xpm
Style "Untitled"        NoTitle, NoHandles
Style "xterm"           Icon xterm.xpm, ManualPlacement
Style "rxvt"            Icon term.xpm, ManualPlacement
Style "?macs"           Icon gnu-animal.xpm, ManualPlacement
Style "exmh"            Icon mail2.xpm, StartsOnPage 1 0 0, SkipMapping 
Style "xmailbox"        UseStyle Naked, ClicktoFocus


###############################################
# Menu definitions
###############################################

AddToMenu RootMenu      "Fvwm2 Menu %mini.eyes.xpm%"    Title
+                       "XTerm %mini.x.xpm%"            Exec exec xterm -ls 
-geometry 70x20 &
#+                      "Rxvt %mini.x.xpm%"             Exec exec rxvt -ls 
-geometry 70x20 &
+                       "XTerm - Red %mini.display.xpm%"        Exec exec xterm 
-ls -bg rgb:80/0/0 -fg white -geometry 70x20&
+                       "XTerm - Blue %mini.display.xpm%"       Exec exec xterm 
-ls -bg rgb:0/0/80 -fg white -geometry 70x20&
+                       ""              Nop
+                       "Host Menu %mini.xterm.xpm%"    Popup Remote_Hosts
+                       ""              Nop
+                       "Emacs %mini.gnu.xpm%"          Exec exec emacs-20.7 
-fn 7x14&
#+                       "XEmacs %mini.gnu.xpm%"         Exec exec xemacs &
+                       "Exmh %mini.letter.xpm%"        Exec exec exmh &
+                       "Netscape Communicator %mini.netscape.xpm%"     Exec 
exec communicator -geometry 750x650+15+15 &
+                       "Netscape Navigator %mini.netscape.xpm%"        Exec 
exec navigator -geometry 750x650+15+15 &
+                       "Xcalc %mini.calc.xpm%"         Exec exec xcalc &
+                       "Sun File Manager %mini.filemgr.xpm%"   Exec exec 
filemgr &
#+                       "Gnome File Manager %mini.gnome.xpm%"   Exec exec gmc &
+                       ""              Nop
+                       "Programs %mini.run.xpm%"       Popup Programs
+                       ""              Nop
+                       "Utilities %mini.x.xpm%"   Popup X_Utilities
#+                       ""              Nop
#+                       "Red Hat Menus" Popup Red_Hat_Linux
+                       ""              Nop 
+                       "Fvwm2 Options %mini.fvwm.xpm%" Popup Fvwm2_Options
+                       ""              Nop
+                       "Logout %mini.stop.xpm%"        Quit

AddToMenu Remote_Hosts  "Remote Hosts" Title
+                       "array"         Exec xrsh array xterm -ls -fg white -bg 
black -name xterm
+                       "blanche"       Exec xrsh blanche xterm -ls -fg white 
-bg black -name xterm
+                       "clem"          Exec xrsh clem xterm -ls -fg white -bg 
black -name xterm
+                       "ethel"         Exec xrsh ethel xterm -ls -fg white -bg 
black -name xterm
+                       "eunice"        Exec xrsh eunice xterm -ls -fg white 
-bg black -name xterm
+                       "gertrude"      Exec xrsh gertrude xterm -ls -fg white 
-bg black -name xterm
+                       "jeb"           Exec xrsh jeb xterm -ls -fg white -bg 
black -name xterm
#+                      "lester"        Exec exec xterm -ls -fg white -bg black 
-name xterm -e ssh lester
+                       "mabel"         Exec xrsh mabel xterm -ls -fg white -bg 
black -name xterm 
+                       "opie"          Exec xrsh opie xterm -ls -fg white -bg 
black -name xterm
#+                      "fremont %mini.penguin.xpm"     Exec xrsh fremont xterm 
-ls -fg white -bg black -name xterm
+                       "pollux %mini.penguin.xpm"      Exec xrsh pollux xterm 
-ls -fg white -bg black -name xterm

AddToMenu Programs      "Programs"                      Title
+                       "Acrobat Reader %mini.pdf.xpm%" Exec exec acroread &
+                       "DDD Debugger %mini.roach.xpm%" Exec exec ddd &
+                       "GhostView %mini.gv.xpm%" Exec exec gv &
+                       "Gimp %mini.gimp.xpm%"          Exec exec gimp &
+                       "Star Office %mini.pencil.xpm%" Exec exec 
/home/pete/bin/soffice &
+                       "Xfig %mini.xfig.xpm%"          Exec exec xfig &
+                       "Xv %mini.xv.xpm%"              Exec exec xv &

AddToMenu X_Utilities   "X Utilities"   Title
+                       "Xkeycaps %mini.xkeycaps.xpm%"  Exec exec xkeycaps &
+                       "Xman %mini.xman.xpm%"          Exec exec xman -notopbox
+                       "Xmag %mini.xmag.xpm%"          Exec exec xmag &
+                       "XLock%mini.lock.xpm%"          Exec exec xlock -mode 
random &
+                       "Editres %mini.edit.xpm%"       Exec exec editres &
+                       "Reload Xdefaults %mini.start.xpm%" Exec exec xrdb 
-load $HOME/.Xdefaults 

AddToMenu Red_Hat_Linux "Red Hat Programs" Title
PipeRead                "wmconfig --output fvwm2"

AddToMenu Fvwm2_Options "Fvwm2 Options" Title
+                       "Fvwm Modules"  Popup Module-Popup
+                       "Fvwm Config Options" Popup Config-Options
+                       "Fvwm Window Options" Popup Window-Options
+                       ""              Nop
+                       "Refresh Screen"   Refresh
+                       "Recapture Screen" Recapture
+                       ""                 Nop
# It's best to specify the full path to fvwm2:
+                       "Restart Fvwm2 %mini.turn.xpm%"  Restart 
/opt/local/X11/bin/fvwm2
+                       "Fvwm2 %mini.exit.xpm%"         Quit 

AddToMenu Forms-Popup  "Fvwm Forms"   Title
+                       "Form - Rlogin"      Module FvwmForm Rlogin
+                       "Form - MyFvwmTalk"  Module FvwmForm MyFvwmTalk
+                       "Form - QuitVerify"  Module FvwmForm QuitVerify


AddToMenu Module-Popup  "FvwmModules"   Title
+                       "Fvwm Window Info"      Module  FvwmIdent
+                       ""              Nop
#+                      "FvwmTalk"      Module  FvwmTalk
#+                      ""              Nop
#+                      "FvwmButtons"   Module  FvwmButtons
#+                      "FvwmWinList"   Module  FvwmWinList
#+                      ""              Nop
#+                      "FvwmBanner"    Module  FvwmBanner
#+                      "FvwmScroll"   Module  FvwmScroll 50 50   
#+                      "FvwmBacker"    Module  FvwmBacker
#+                      ""              Nop
#+                       "FvwmIconMan"  Module  FvwmIconMan
#+                      ""              Nop
+                       "FvwmIconBox On"    Module      FvwmIconBox
+                       "FvwmIconBox Off"   KillModule FvwmIconBox
+                       ""              Nop
+                       "FvwmPager On"  Module FvwmPager 0 1
+                       "FvwmPager Off" KillModule FvwmPager
+                       ""              Nop
+                       "AutoRaise On"  Module  FvwmAuto 200 Raise Nop    
+                       "AutoRaise Off" KillModule FvwmAuto
+                       ""              Nop
+                       "Animation On"  Module FvwmAnimate
+                       "Animation Off" KillModule FvwmAnimate
+                       "Animation Effects"       Title
+                       "Frame"         *FvwmAnimateEffect Frame
+                       "Lines"         *FvwmAnimateEffect Flip
+                       "Turn"          *FvwmAnimateEffect Turn
+                       "Zoom3D"        *FvwmAnimateEffect Zoom3D
+                       "Twist Random"  *FvwmAnimateEffect Twist Random
+                       ""              Nop
+                       "FvwmForm - Rlogin"      Module FvwmForm Rlogin
+                       "FvwmForm - MyFvwmTalk"  Module FvwmForm MyFvwmTalk
+                       "FvwmForm - QuitVerify"  Module FvwmForm QuitVerify
+                       ""              Nop

AddToMenu Config-Options "Config Options" Title
+                  "Sloppy Focus"        ChangeDefaultFocus SloppyFocus
+                  "Click To Focus"      ChangeDefaultFocus ClickToFocus
+                  "Focus Follows Mouse" ChangeDefaultFocus FocusFollowsMouse
+                  "" Nop
+                  "Colormap Follows Mouse" ColormapFocus FollowsMouse
+                  "Colormap Follows Focus" ColormapFocus FollowsFocus
+                  "" Nop
+                  "Full Paging ON"         EdgeScroll 100 100
+                  "All Paging OFF"         EdgeScroll 0 0
+                  "Horizontal Paging Only" EdgeScroll 100 0
+                  "Vertical Paging Only"   EdgeScroll 0 100
+                  "Partial Paging"         EdgeScroll 50 50
+                  "Full Paging && Edge Wrap" EdgeScroll 100000 100000

AddToMenu Window-Options "Window Options" Title         
+                       "Move"          Move
+                       "Resize"        Resize
+                       "Raise"         Raise
+                       "Lower"         Lower 
+                       "(De)Iconify"   Iconify
+                       "(Un)Stick"     Stick           
+                       "(Un)Maximize"  Maximize
+                       ""              Nop
+                       "Delete"        Delete
+                       "Close"         Close
+                       "Destroy"       Destroy
+                       ""              Nop
+                       "Refresh Window" RefreshWindow


######################################################################
# Keyboard Setup
#
# Bindings syntax
# ---------------
# Context: R=Root window, W=Application window, T=Title bar,
#          0..9=Title bar button  [1][3][5][7][9][0][8][6][4][2]
#          F=Frame, S=Side bar, I=Icon
# Modifier: C=control, S=shift, M=meta, A=any, N=None
#
# Key Keyname Context Modifiers Function
#
######################################################################

# General global bindings
Key F1          A       N       RaiseLower
Key F1          A       C       WindowList 

# These allow you to hit control-<Arrow-key> to switch focus to
# the window next to your current window in that direction
Key Right       A       C       Direction East (CurrentDesk !Iconic) Focus
Key Left        A       C       Direction West (CurrentDesk !Iconic) Focus
Key Up          A       C       Direction North (CurrentDesk !Iconic) Focus
Key Down        A       C       Direction South (CurrentDesk !Iconic) Focus

# Familiar alt-tabbing
Key Tab         A       M       Next (CurrentDesk !Iconic) Focus
Key Tab         A       SM      Prev (CurrentDesk !Iconic) Focus

# Laptop Linux hotkeys
Key F10         A       C       Exec exec xterm -fg black -bg white -e 
arraycommMail # check Arraycomm Mail
Key F11         A       C       Exec exec /sbin/cardctl insert # Turn all 
PCMCIA cards on
Key F12         A       C       Exec exec /sbin/cardctl eject  # Turn all 
PCMCIA cards off


#######################################################################
# Mouse Setup
#
# Bindings syntax
# ---------------
# Button: 1=Left, 2=Middle, 3=Right   
# Context: R=Root window, W=Application window, T=Title bar,
#          0..9=Title bar button  [1][3][5][7][9][0][8][6][4][2]
#          F=Frame, S=Side bar, I=Icon
# Modifier: C=control, S=shift, M=meta, A=any, N=None
#
# Button Context Modifiers Function
#
######################################################################

# Mouse click speed
ClickTime       150 # 150ms triggers focus/timing issue. 350 does ok

# Root Window mouse
# left button brings up a window list
# middle button brings up a list of Window commands
# right button brings up the main fvwm2 RootMenu
Mouse 1 R       A       WindowList
Mouse 2 R       A       Menu Window-Ops Nop
Mouse 3 R       A       Menu RootMenu Nop

# Title Bar Buttons
# Far left button - menu on click
# Near right button Iconifies
# 2nd right button does a horizontal maximize/minimize
# 3rd right button does a vertical maximize/minimize
# 4th right button does a full maximize/minimize
# Far right button closes window
#
# Odd numbered buttons are on left side, even on right
# Each side digit must start with even/odd as such:
#
# 1 3 5                     20 8 6 4 2

Mouse 0 1       A       Menu Window-Options Close
Mouse 0 20      A       Iconify
Mouse 0 8       A       Maximize 100 0
Mouse 0 6       A       Maximize 0 100
Mouse 0 4       A       Maximize 100 100
Mouse 0 2       A       Close

# Title bar
# left button raises, on drag it moves
# right button lowers, on drag it moves
Mouse 1 T       A       Move-or-Iconify-Raise-Func
Mouse 3 T       A       Move-or-Iconify-Lower-Func

# Sidebars and Frames
# left button raises, on drag it resizes
# right button raises, on drag it moves
Mouse 1 FS      A       Resize-Raise-Func
Mouse 3 FS       A       Move-or-Iconify-Raise-Func 

# Main Window
# Meta left click raises window
# Meta right click lowers
Mouse 1 W       M       Raise
Mouse 3 W       M       Lower

# Iconic
# Left button moves on drag and un-iconifies on double click
# Right button moves
Mouse 1 I       A       Move-or-Iconify
Mouse 3 I       A       Move


#############################
# FvwmButtons bar
#############################

*FvwmButtonsGeometry 520x100-1-1
*FvwmButtonsBack bisque3
*FvwmButtons(Frame 2 Padding 2 2 Container(Rows 2 Columns 5 Frame 1 \
                                           Padding 10 0))
*FvwmButtons(3x2 Frame 2 Swallow "FvwmIconMan" "Module FvwmIconMan")
*FvwmButtons(1x2 Frame 2 Swallow(UseOld) "FvwmPager" "Module FvwmPager 0 0")
*FvwmButtons(1x2 Frame 0 Container(Rows 2 Columns 2 Frame 0))
*FvwmButtons(Frame 2 Swallow(UseOld,NoHints,Respawn) "xbiff" `exec exec xbiff -b
g bisque3`)
*FvwmButtons(Frame 3 Swallow(UseOld,NoHints,Respawn) "xclock" `exec exec xclock 
-bg bisque3 -fg black -hd black -hl black -padding 0 -update 1`)
*FvwmButtons(2x1 Frame 2 Swallow(UseOld,NoHints,Respawn) "xload" `exec exec xloa
d -bg bisque3 -fg black -update 5 -nolabel`)
*FvwmButtons(End)
*FvwmButtons(End)

#####################################################################
# FvwmForms - I don't use these so they aren't setup for our config
#####################################################################

# FvwmForm alias - rlogin or telnet to host via xterm
*RloginWarpPointer
*RloginFont         *helvetica*m*r*n*12*
*RloginButtonFont   *helvetica*m*o*n*12*
*RloginInputFont    *cour*m*r*n*12*
*RloginFore         Black
*RloginBack         Light Gray
*RloginItemFore          Wheat
*RloginItemBack          Gray50
# begin items
*RloginLine         center
*RloginText         "Login to Remote Host"
*RloginLine         center
*RloginText         "Host:"
*RloginInput        HostName  30   ""
*RloginLine         center
*RloginSelection    meth single
*RloginChoice       TN TN off "telnet"
*RloginChoice       RL RL on "rlogin"
*RloginSelection    UserSel   single
*RloginChoice       Default   Default   on   "same user"
*RloginChoice       Custom    Custom    off  "user:"
*RloginText         "(Userid:"
*RloginInput        UserName  10   ""
*RloginText         ")"
*RloginLine         center
*RloginText         "FG:"
*RloginInput        FgColor 15 ""
*RloginText         "BG:"
*RloginInput        BgColor 15 ""
*RloginLine         expand
*RloginButton       quit "Login" ^M
*RloginCommand Exec xterm  $(FgColor?-fg $(FgColor)) $(BgColor?-bg $(BgColor)) 
-T [EMAIL PROTECTED](HostName) -e $(RL?rlog
in) $(TN?telnet) $(HostName) $(RL?-8 $(UserName?-l $(UserName)))
*RloginButton       restart   "Clear"
*RloginCommand Beep
*RloginButton       quit "Cancel"
*RloginCommand Nop

# FvwmForm alias - query exit ala mwm
*QuitVerifyGrabServer
*QuitVerifyWarpPointer
*QuitVerifyFont          *helvetica*m*r*n*14*
#*QuitVerifyButtonFont    *helvetica*m*o*n*14*
*QuitVerifyButtonFont    7x13bold
*QuitVerifyFore          Black
*QuitVerifyBack          Light Gray
*QuitVerifyItemFore Wheat
*QuitVerifyItemBack Gray50
# begin items
*QuitVerifyLine          center
*QuitVerifyText          "Do you really want to exit FVWM?"
*QuitVerifyLine          expand
*QuitVerifyButton   quit      " Exit "
*QuitVerifyCommand  Quit
*QuitVerifyButton   quit      "Cancel"
*QuitVerifyCommand  Nop

# MyTalk & MyFvwmTalk from Dave Goldberg
# MyTalk Form - dissappears after use
*MyTalkWarpPointer
*MyTalkFont *helvetica*m*r*n*14*
*MyTalkButtonFont *helvetica*m*o*n*14*
*MyTalkInputFont *cour*m*r*n*14*
*MyTalkFore Red
*MyTalkBack Gray
*MyTalkItemFore Blue
*MyTalkItemBack Gray
*MyTalkLine center
*MyTalkText "Fvwm Function"
*MyTalkInput Func 40 ""
*MyTalkLine expand
*MyTalkButton quit "Run" ^M
*MyTalkCommand $(Func)
*MyTalkButton restart "Clear" ^R
*MyTalkButton quit "Cancel" ^C
*MyTalkCommand Nop
# MyFvwmTalk Form - sticks around
*MyFvwmTalkWarpPointer
*MyFvwmTalkFont *helvetica*m*r*n*14*
*MyFvwmTalkButtonFont *helvetica*m*o*n*14*
*MyFvwmTalkInputFont *cour*m*r*n*14*
*MyFvwmTalkFore Red
*MyFvwmTalkBack Gray
*MyFvwmTalkItemFore Blue
*MyFvwmTalkItemBack Gray
*MyFvwmTalkLine center
*MyFvwmTalkText "Fvwm Function"
*MyFvwmTalkInput Func 40 ""
*MyFvwmTalkLine expand
*MyFvwmTalkButton restart "Run" ^M
*MyFvwmTalkCommand $(Func)
*MyFvwmTalkButton restart "Clear" ^R
*MyFvwmTalkCommand Nop
*MyFvwmTalkButton restart "Iconify" ^Z
*MyFvwmTalkCommand Next [MyFvwmTalk] Iconify
*MyFvwmTalkButton quit "Quit" ^C
*MyFvwmTalkCommand Nop

#################
# FvwmIconMan
#################
# this FvwmIconMan setup is for swallowing in above button bar example
*FvwmIconMan*numManagers 1
*FvwmIconMan*Resolution  page
*FvwmIconMan*background  bisque3
*FvwmIconMan*foreground  black
*FvwmIconMan*font        7x13bold
*FvwmIconMan*format      "%t"
*FvwmIconMan*action      Mouse   1 N sendcommand Focus, sendcommand "Iconify"
*FvwmIconMan*action      Mouse   2 N sendcommand "Iconify 1"
*FvwmIconMan*action      Mouse   3 N sendcommand "FvwmIdent"
*FvwmIconMan*followfocus true
*FvwmIconMan*sort        false
*FvwmIconMan*plainbutton          up black bisque3
*FvwmIconMan*selectbutton         down black bisque3
*FvwmIconMan*focusbutton          up yellow firebrick
*FvwmIconMan*focusandselectButton down yellow firebrick
*FvwmIconMan*dontshow icon=Untitled name=Untitled
#*FvwmIconMan*drawicons true
*FvwmIconMan*buttongeometry  300x0
*FvwmIconMan*managergeometry 1x5


########################
# FvwmIdent
########################

# window identifier
# FvwmIdent
*FvwmIdentFore  yellow
*FvwmIdentBack  MidnightBlue
*FvwmIdentFont  -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*


#######################
# FvwmPager 
#######################

# Modify this according to your monitor size 
*FvwmPager: DeskTopScale 25
#*FvwmPager: SloppyFocus
*FvwmPagerBack rgb:90/80/90
*FvwmPagerFore rgb:48/40/48
*FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
# turn off desktop names for swallowing in above button bar example:
#*FvwmPagerFont none
*FvwmPagerHilight  rgb:CA/B3/CA
*FvwmPagerGeometry -3-3 # horizontal, vertical
#*FvwmPagerLabel 0 Main
#*FvwmPagerLabel 1 Network
#*FvwmPagerLabel 2  Emacs
#*FvwmPagerLabel 3  Matlab
*FvwmPagerSmallFont 5x8
#*FvwmPagerBalloons            All
#*FvwmPagerBalloonBack         Yellow
#*FvwmPagerBalloonFore         Black
#*FvwmPagerBalloonFont         lucidasanstypewriter-12
#*FvwmPagerBalloonYOffset      +2
#*FvwmPagerBalloonBorderWidth  1
#*FvwmPagerBalloonBorderColor  Black

##########################
# FvwmWinList
##########################

*FvwmWinListBack        rgb:90/80/90
*FvwmWinListFore        black
*FvwmWinListFont        -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
*FvwmWinListAction      Click1 Iconify -1,Focus
*FvwmWinListAction      Click2 Iconify
*FvwmWinListAction      Click3 Module "FvwmIdent" FvwmIdent
*FvwmWinListUseSkipList
*FvwmWinListGeometry +0-1
*FvwmBackerDesk 0 -solid steelblue
*FvwmBackerDesk 1 -solid midnightblue


###########################################################################
# FvwmIconBox - I don't use this so its not properly setup for our config 
############################################################################

# NOTE: If you ever use this feature, you must set `Style "*" NoIcon' 
#Style "*" NoIcon

*FvwmIconBoxFore        black
*FvwmIconBoxBack        black
*FvwmIconBoxIconFore    black
*FvwmIconBoxIconBack    bisque3
*FvwmIconBoxIconHiFore  white

*FvwmIconBoxIconHiBack  slateblue2
*FvwmIconBoxFont        -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
*FvwmIconBoxSortIcons   IconName
*FvwmIconBoxPadding     3
*FvwmIconBoxPlacement   Top Left
*FvwmIconBoxLines       10
#*FvwmIconBoxMaxIconSize        64x38
*FvwmIconBoxMaxIconSize 54x30
*FvwmIconBoxHilightFocusWin
*FvwmIconBox    Fvwm*   -
#*FvwmIconBoxPixmap     fvwm.xpm
*FvwmIconBoxGeometry    2x5-10+140
*FvwmIconBoxSBWidth     3
*FvwmIconBoxFrameWidth 1 1
*FvwmIconBoxHideSC Horizontal
*FvwmIconBoxHideSC Vertical
*FvwmIconBoxSetWMIconSize
*FvwmIconBox: NoIconAction SendToModule FvwmAnimate animate
#key bindings
*FvwmIconBoxKey r RaiseLower
*FvwmIconBoxKey space Iconify
*FvwmIconBoxKey d Close
*FvwmIconBoxKey n Next
*FvwmIconBoxKey p Prev
*FvwmIconBoxKey h Left
*FvwmIconBoxKey j Down
*FvwmIconBoxKey k Up
*FvwmIconBoxKey l Right
# mouse bindings
*FvwmIconBoxMouse       1 Click RaiseLower
*FvwmIconBoxMouse       1 DoubleClick Iconify
*FvwmIconBoxMouse       2 Click Iconify -1,Focus
*FvwmIconBoxMouse       3 Click Module FvwmIdent
# icon files
*FvwmIconBox            "*"             unknown1.xpm
*FvwmIconBox            "Fvwm*"         -
*FvwmIconBox            "rxvt"          term.xpm
*FvwmIconBox            "xterm"         xterm.xpm
*FvwmIconBox            "editres"       editres.xpm
*FvwmIconBox            "xman"          xman.xpm
*FvwmIconBox            "xbiff"         mail1.xpm
*FvwmIconBox            "xmh"           mail1.xpm
*FvwmIconBox            "xcalc"         xcalc.xpm
*FvwmIconBox            "emacs*"        gnu-animal.xpm
*FvwmIconBox            "FvwmButtons"   toolbox.xpm


#########################
# FvwmScroll
#########################

*FvwmScrollFore green
*FvwmScrollBack grey40

#########################
# FvwmAnimate
#########################

# this sets the default animation
*FvwmAnimateEffect TwistRandom
# how many  milliseconds to  sleep between frames of animation.
*FvwmAnimateDelay 20
# how many steps to break the animation into 
#*FvwmAnimateIterations 5 
# how many revolutions to twist the iconification frame
*FvwmAnimateTwist 5
# how  wide  a line to draw with.
*FvwmAnimateWidth 1

#==========================================================================
# Functions
#==========================================================================

# Fvwm initial startup functions
AddToFunc InitFunction

# Set deskop backround color, NOTE: this gets overridden when using GNOME
+                       "I" Exec exec xsetroot -solid black
#+                      "I" Exec exec xsetroot -solid wheat4

# Fvwm stuff
+                       "I" Module FvwmPager 0 1
+                       "I" Desk 0 0
+                       "I" Module FvwmAnimate
#+                      "I" Module FvwmAuto 400 raise lower

# Xbiff, xclock and xload
+                       "I" Exec exec xclock -update 1 -geometry =220x35-10+5 
-bg black -fg green -bd green -hd slateblue -hl red -digital -padding 8 &
+                       "I" Exec exec xclock -update 1 -geometry =105x80-125+50 
-bg black -fg green -bd green -hd slateblue -hl red &
+                       "I" Exec exec xload -bg black -fg green -geometry 
=105x80-10+50 -hl red &

# Xterms
+                       "I" Exec exec xterm -ls -xrm "*Page:0 0 0" -geometry 
100x45+10+15 &
+                       "I" Exec exec xterm -ls -xrm "*Page:0 1 0" -geometry 
90x25+10+15 &
+                       "I" Exec exec xterm -ls -xrm "*Page:0 1 0" -geometry 
90x22+10-15 &

# Fvwm restart functions
AddToFunc RestartFunction
man 
+                        "I" Module FvwmPager 0 1
+                        "I" Module FvwmAnimate 
#+                        "I" Module FvwmIconBox

# Complex (user) Functions
# Auto-raise, resize on motion
AddToFunc Resize-Raise-Func     "I" Raise
+                               "M" Resize
# Auto-lower, resize on motion
AddToFunc Resize-Lower-Func     "I" Lower
+                               "M" Resize
# Auto-raise, move on motion, iconify on double-click
AddToFunc Move-or-Iconify-Raise-Func    "I" Raise
+                                       "M" Move
+                                       "D" Iconify
# Auto-Lower, move on motion, iconify on double-click
AddToFunc Move-or-Iconify-Lower-Func    "I" Lower
+                                       "M" Move
+                                       "D" Iconify
# Move on motion, iconify on double-click
AddToFunc Move-or-Iconify       "M" Move
+                               "D" Iconify
# Auto-raise then print
AddToFunc PrintFunction         "I" Raise
+                               "I" Exec exec xdpr -id $w


~~Pete

Reply via email to