Re: FVWM: Building a decent Panel?

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Mon, 14 Apr 2003 17:16:23 +0200

On Mon, Apr 14, 2003 at 02:56:22PM +0000, Mikhael Goikhman wrote:
> On 14 Apr 2003 15:34:07 +0200, Uwe Pross wrote:
[snip]
> > You may also use the "EdgeCommand" in version 2.5.x to execute a
> > function or command if the mouse hits the edge of the screen:
[snip]
> The disadvantage that makes this setup useless is that a user normally
> wants that all special modules, like FvwmButtons, FvwmTaskBar, FvwmPager
> are not focusable. I.e. these modules should normally be NeverFocus,
> not ClickToFocus.
[snip]

Below is the new and official, race condition free, resource
friendly, configurable and extensible way for autohiding. I will
polish it a bit and put it in the FAQ. This works with the latest
CVS code only:

  AddToFunc autohide_handler
  + I hide_or_show $0 FvwmButtons 500 W
  # ^ ^ ^
  # | | |___ Shade direction (optional)
  # | |_______ Hide delay
  # |___________________ Unique window name/resource

  AddToFunc hide_or_show
  + I WindowId $0 ($1) Deschedule $0
  + I WindowId $0 ($1) ThisWindow (shaded) WindowShade $i3 off
  + I CondCase (!Match) All (!shaded, $1) Schedule $2 $$$$$$$$w WindowShade $3 on

  AddToFunc StartFunction
  + I Module FvwmAuto FvwmAutohide -passid -menter autohide_handler

Bye

Dominik ^_^ ^_^
--
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 Mon Apr 14 2003 - 10:15:59 BST

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