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

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Fri, 5 Jul 2002 22:41:51 +0200

On Fri, Jul 05, 2002 at 07:20:40PM +0300, Tom Alsberg wrote:
> On Fri, Jul 05, 2002 at 05:52:58PM +0200, Dominik Vogt wrote:
[snip]
> There is one problem, though... This does not solve the problem I have
> with flickering windows/widgets... I removed all my setup related to
> it, tested that it does not happen, then inserted your snippet, and
> tested, and the flickering happens again...
>
> A simple test to check the problem, which always shows it for me if it
> is there, is with gv (Ghostview). If you have it installed, try the
> following with this setup - open some PostScript file in Ghostview,
> then select some area by dragging with the middle mouse button (or
> equivalent). A zoom menu is supposed to show up. Without those
> auto-raise setups, it works fine. With either your snippet, or my
> previous setup, you will see the menu for a fraction of a second, and
> then it will disappear. This should not happen.

Ah yes. Ghostview probably wants to grab the pointer when the
zoom window is opened, but since fvwm is in a complex function,
the pointer is already grabbed. Instead or retrying, gv gives up
immediately and closes the window. On my machine, the problem
goess away when I add this line at the front of the
autohide_window function:

  + I PointerWindow (gv) break

so the complete function looks like this:

  DestroyFunc autohide_window
  AddToFunc autohide_window
  + I PointerWindow (gv) break
  + I Schedule $[AUTO_HIDE_DELAY] $[AUTO_HIDE_GROUP] hide_all
  + I PointerWindow (FvwmIconMan) schedule_raise
  + I PointerWindow (FvwmButtons) schedule_raise
  + I PointerWindow (xclock) schedule_raise
  + I PointerWindow (xexec) schedule_raise

Fvwm breaks out of the function fast enough so that gv can grab
the pointer. Unfortunately, the pattern (gv) applies to all
ghostview windows, somewhat negating the effect of the autohide
setup.

Bye

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 Fri Jul 05 2002 - 16:34:48 BST

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