Re: FVWM: Automatically raise certain windows on mouse enter, flickering of windows and widgets

From: Dominik Vogt <dominik.vogt_at_schlund.de>
Date: Fri, 5 Jul 2002 15:13:22 +0200

On Thu, Jul 04, 2002 at 10:04:01PM +0300, Tom Alsberg wrote:
> Hi there.
> I would like to automatically raise and lower some certain windows,
> like for example XClock, FvwmButtons, icon managers, etc. - raise when
> the mouse pointer enters them, and lower when the mouse pointer leaves
> them.
> I asked this already in a previous thread at the end of last year, and
> some-when in that thread Dominik Vogt told that he implemented
> enter_window and leave_window events in FvwmEvent, and suggested that
> I use those.
> Since I started using FVWM 2.5, I have the following in my .fvwm2rc:
>
> # Functions to auto-raise / auto-lower only some specific windows:
> DestroyFunc SelectiveRaise
> AddToFunc SelectiveRaise
> + I WindowId $0 (!raised "FvwmIconMan") Raise
> + I WindowId $0 (!raised "FvwmButtons") Raise
> + I WindowId $0 (!raised "xclock") Raise
> + I WindowId $0 (!raised "xexec") Raise
>
> DestroyFunc SelectiveLower
> AddToFunc SelectiveLower
> + I WindowId $0 (raised "FvwmIconMan") Lower
> + I WindowId $0 (raised "FvwmButtons") Lower
> + I WindowId $0 (raised "xclock") Lower
> + I WindowId $0 (raised "xexec") Lower
>
> # Pass ID of window to actions:
> *FvwmEvent: PassId
>
> # For auto-raise:
> *FvwmEvent: enter_window "Silent SelectiveRaise"
> *FvwmEvent: leave_window "Silent SelectiveLower"
>
> But then I started having the problem of some windows/widgets
> flickering (acting like losing and getting the focus very fast). For
> example buttons in GTK+ applications, Netscape's toolbars, and most
> noticable for me - Ghostview (gv), which shows the zoom menu (when
> selecting an area with the middle button) for only a very short time,
> a fraction of a second, and that menu disappears. Also sometimes
> "balloon" labels in the pager flicker in the same way, just as some
> other windows sometimes.
>
> I started a thread in the FVWM mailing list then, and was told that my
> solution - way to do the raising and lowering with enter_window and
> leave_window events is the problem. I was told to look up some more.
>
> Since then I looked up, and did not find a solution yet. CTWM (and
> partially TWM) let me do that (automatically raise some windows on
> mouse entering and leaving) with the AutoRaise and AutoLower settings,
> which worked fine, just as I needed, and didn't cause those kinds of
> problems.
>
> I want to use FVWM, though, as it is the best window manager for
> me. Except this one thing.
> Any idea for a solution for me? Can't such AutoRaise and AutoLower
> settings (or styles) or the like be implemented in FVWM too?
>
> This is really the main thing that I have a problem with in FVWM right
> now... And I would be happy if that issue would be solved.

I can't remember exactly right now, but I think I posted a better
solution when I added the Schedule command. It boils down to
scheduling the raise lower commands instead of executing them
directly. When a command is finally executed, it cleans up the
schedule queue. This eliminates the race condition if done
correctly. Perhaps someone else can come up with a link to my
original post?

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
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 Fri Jul 05 2002 - 08:14:59 BST

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