Re: FVWM: How to make ClickToFocus working regardless of modifier key?

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Wed, 24 Mar 1999 12:17:15 +0100

On Tue, Mar 23, 1999 at 03:45:59PM -0800, samuel_chung_at_yahoo.com wrote:
> I am new to FVWM. I like to set it up with ClickToFocus
> working regardless of any modifier key. How should
> I modify my .fvwm2rc to pass on ButtonPress Event
> after FVWM have been reacted from ClickToFocus?

You're out of luck here. ClickToFucus does not work with
modifiers pressed. If you absolutely need this you can
modify the source:

In file fvwm/events.c, function HandleButtonPress:

Replace

  /* click to focus stuff goes here */
  if((Tmp_win)&&(Tmp_win->flags & ClickToFocus)&&(Tmp_win != Scr.Ungrabbed) &&
     (!MaskUsedModifiers(Event.xbutton.state)))
  {

With

  /* click to focus stuff goes here */
  if((Tmp_win)&&(Tmp_win->flags & ClickToFocus)&&(Tmp_win != Scr.Ungrabbed))
  {

(I didn't test this myself).

The following command solves your second problem:

  GlobalOpts ClickToFocusPassesClick

Bye

Dominik

-- 
Dominik Vogt, Hewlett-Packard GmbH, Dept. BVS
Herrenberger Str.130, 71034 Boeblingen, Germany
phone: 07031/14-4596, fax: 07031/14-3883, dominik_vogt_at_hp.com
--
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 Mar 24 1999 - 05:18:16 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST