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

From: Tom Alsberg <alsbergt_at_zoopee.org>
Date: Thu, 4 Jul 2002 22:04:01 +0300

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.

  Thank you, any help appreciated,
  -- Tom

-- 
  Tom Alsberg - certified insane, complete illiterate.
        e-mail: <alsbergt_at_softhome.net>
	Homepage: http://www.cs.huji.ac.il/~alsbergt/
  * An idea is not responsible for the people who believe in it.
--
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 Thu Jul 04 2002 - 14:04:48 BST

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