Re: FVWM: Setting focus to window below mouse cursor?

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sat, 23 Nov 2002 21:56:41 +0000

On 23 Nov 2002 17:28:03 +0100, Felix E. Klee wrote:
>
> I set up key combinations (CA-Left, CA-Right, CA-UP, CA-DOWN) to move
> around pages on a desktop by 100% window size. But when pressing eg.
> CA-Left I expect the currently visible window below the mouse cursor to
> have input focus. To do this I guess it is easiest to focus the window
> below the cursor immediately after changing the page. But how do I set
> the focus to the window below the mouse cursor?

You probably want SloppyFocus or MouseFocus. Then a window that happens to
be under the cursor will be focused:

  Style * SloppyFocus

If you for some reason insist on using ClickToFocus policy, it's possible
to do what you want (but only in 2.5.x):

  Key Left A CM GotoPageAndFocus -1p +0p
  Key Right A CM GotoPageAndFocus +1p +0p
  Key Up A CM GotoPageAndFocus +0p -1p
  Key Down A CM GotoPageAndFocus +0p +1p

  DestroyFunc GotoPageAndFocus
  AddToFunc GotoPageAndFocus
  + I GotoPage $*
  + I Next (HasPointer) Focus

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 Sat Nov 23 2002 - 15:57:52 GMT

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