Re: FVWM: Flickering of buttons and mouse focus

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Mon, 15 Apr 2002 21:47:15 +0000

On 15 Apr 2002 19:52:16 +0300, Tom Alsberg wrote:
>
> On Sun, Apr 14, 2002 at 08:20:15PM +0000, Mikhael Goikhman wrote:
> > On 14 Apr 2002 22:23:27 +0300, Tom Alsberg wrote:
> > >
> > > In the current FVWM (CVS), there seems to be a bug in mouse focus... I
> > > don't really know where the bug really is, but sometimes
> > > windows/widgets act like they lose and get the focus very fast for
> > > some time, like flickering.
> > > <snip />
> >
> > Does this happen with no config file too?
> > I.e.: fvwm -f no-rc
>
> No, it doesn't happen without a config file...
> I checked a bit further, and found that the problem is related to the
> following in my .fvwm2rc - if I remove them then the problem goes
> away:
>
> # For auto-raise:
> *FvwmEvent: enter_window "Silent SelectiveRaise"
> *FvwmEvent: leave_window "Silent SelectiveLower"
>
> # 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
>
> So it apparently happens only with FVWM 2.5 because earlier versions
> didn't have the enter_window/leave_window events.
>
> Those lines are for certain windows to be automatically raised and
> lowered when the pointer enters and exits them.
>
> I didn't manage to find out the problem in those lines of my
> .fvwm2rc... But it might be that I'm missing something... So I'm not
> sure if it's a bug or not...

The lines are ok except of one missing line that you certainly use:

  *FvwmEvent: PassId

The problem with FvwmEvent working on enter_window/leave_window is that
these events are sent when you enter/leave small subwindows too, gtk+
widgets included.

Here is a known problem when Raise/Lower is used, windows may easily
placed so they compete for a place on top forever (i.e. alternately are
raised/lowered until mouse does not leave the region:

  *FvwmEvent-Test: PassId
  *FvwmEvent-Test: enter_window "Selective Raise"
  *FvwmEvent-Test: leave_window "Selective Lower"

  DestroyFunc Selective
  AddToFunc Selective
  + I WindowId $1 $0

  FvwmEvent FvwmEvent-Test
  #KillModule FvwmEvent FvwmEvent-Test

I also sometimes experienced flickering of the pager labels forever when
using enter_window/leave_window together with Schedule, but now when I
tried hard, I can even sometimes reproduce this with your config above too.

It seems that FvwmEvent with enter_window/leave_window (probably when
using actions other than Raise/Lower too) is problematic, don't use it.

I suggest to continue to discuss this on fvwm-workers list.

Regards,
Mikhael.
--
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 15 2002 - 16:47:55 BST

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