Re: FVWM: VMWare and focus following mouse

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Wed, 7 May 2003 10:02:37 +0200

On Tue, May 06, 2003 at 07:12:01PM -0400, tlau-fvwm_at_ofb.net wrote:
> Hi,
>
> I use vmware with fvwm 2.5.5, and the MouseFocusClickRaises style. I
> just sent this email to the vmware support forum:
>
> I use vmware under a window manager with a focus-follows-mouse
> policy. When windows are in front of the vmware window, vmware
> won't release the mouse cursor until the mouse moves outside the
> boundary of the vmware window, even though there is a window in
> front of the vmware window that should receive the focus. This
> only happens when the cursor has been grabbed by vmware (it's the
> arrow, not the hand).
>
> In these cases, the cursor disappears behind the window in front,
> resulting in confusing behavior. I expect that when the pointer
> moves from vmware to a window that partially obscures the vmware
> window, the focus should transfer to the window in front. However
> vmware retains the focus until the pointer exits the vmware window,
> at which point focus switches to the window beneath the cursor.
>
> I have seen this problem with both fvwm (version 2.5.5) and sawfish
> (version 1.2) window managers.
>
> Normally I would categorize this as a vmware bug, but in some cases fvwm
> is also at fault. Sometimes, even though I move the mouse outside the
> vmware window, focus doesn't transfer to the window on top, but rather
> remains inside the vmware window. So I can get into a situation, where
> the focus is in one window, but my cursor is quite obviously in a
> different window.
>
> Unfortunately, it only happens sometimes. But it happens dozens of
> times a day, and it gets to be rather annoying.
>
> Any ideas? Has this been fixed in a newer version of fvwm?

My guess is that vmware grabs all mouse events when the pointer
enters its window. I am sure there *is* a vmware bug since it
should release the grab when the pointer leaves its window, since
you seems to have set it up to behave this way.

About focus not being transferred outside the vmware window: when
the pointer is (un)grabbed, X generates EnterNotify and
LeaveNotify for the windows involved. It is important to ignore
some of these events. For example, if you have something like

  mouse 1 a csm Next (xterm) Focus

You would not want that the EnterNotify for the window under the
pointer that is generated when the automatic pointer grab is
released makes fvwm focus the window that already had the focus.
There are delicate heuristics in fvwm that try to guess which have
to be ignored and which do not. But there is no way to make it
work hundred percent reliably.

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 Wed May 07 2003 - 09:07:22 BST

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