Re: FVWM: EdgeCommand question

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Tue, 31 Aug 2004 13:45:08 +0200

On Mon, Aug 30, 2004 at 12:08:49AM -0000, vladimir-fvwm_at_math.uic.edu wrote:
> Hello All,
>
> I've taken an EdgeCommand example from fvwm's man page and tried to
> modify it so that the FvwmButtons window (located along the bottom part
> of the screen) gets raised when the cursor hits the bottom edge of the
> screen, and gets iconified when the cursor leaves the FvwmButtons window.
> Unfortunately due to my limited experience with fvwm's config I could
> not do that. I'd appreciate if the gurus on the list could help me out.
> Here is what I wrote:
>
> Style FvwmButtons MouseFocus
>
> # Set thickness of the edge of the screen to 1
> EdgeThickness 1
>
> # Give focus to FvwmButtons if the mouse
> # hits bottom edge
> EdgeCommand Bottom Next (FvwmButtons) Focus
>
> Module FvwmButtons
> Module FvwmAuto 100 \
> "Silent AutoRaiseFunction" \
> "Silent AutoLowerFunction"
>
> DestroyFunc AutoLowerFunction
> AddToFunc AutoLowerFunction
> + I Current (!FvwmButtons) \
> All (FvwmButtons) Iconify
>
> # If FvwmButtons has focus when calling \
> # this function raise it
> DestroyFunc AutoRaiseFunction
> AddToFunc AutoRaiseFunction
> + I Current (FvwmButtons) Raise
>
> I want FvwmButtons disappear completely when the mouse leaves FvwmButtons
> window, regardless whether the pointer goes into the root area or to
> another window. With the setup above, FvwmButtons window disappears and
> appears again during swiching of the desks, in a seemingly random fashion.
>
> I currently use another example from FAQ to make FvwmButtons shade or
> unshade (I've put the relevant .fvwm2rc lines below the signature),
> but this setup leaves an annoying piece of FvwmButtons at the bottom of
> the screen.

This is the best version of the function I managed to write:

--
Style FvwmButtons MouseFocus
# Set thickness of the edge of the screen to 1
EdgeThickness 1
EdgeCommand Bottom Next (FvwmButtons) Focus
Style FvwmButtons CirculateHit, MouseFocus
Module FvwmButtons
Module FvwmAuto 100 "Silent AutoRaiseFunction"
DestroyFunc AutoLowerFunction
AddToFunc AutoLowerFunction
+ I ThisWindow (FvwmButtons) Iconify on
# If FvwmButtons has focus when calling this function raise it
DestroyFunc AutoRaiseFunction
AddToFunc AutoRaiseFunction
+ I All (!Iconic, !Focused, FvwmButtons) Iconify on
+ I Current (Iconic, FvwmButtons) Iconify off
+ I Current (FvwmButtons) Raise
--
Unfortunately, it does not hide the the buttons window when the
pointer moves to the root window.  While this works fine with the
shading version from the FAQ, it's nigh impossible to do right
with the iconifying version.  If this is too annoying for you, try
shading to a corner instead of the whole bottom edge.
Ciao
Dominik ^_^  ^_^
 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de


--
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 Aug 31 2004 - 06:42:15 BST

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