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

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Thu, 1 Apr 1999 00:50:42 +0200

On Wed, Mar 24, 1999 at 09:28:34AM -0800, Samuel Chung wrote:
> Thank you Dominik!! It work, but it only work when I
> click on frame or side border or title. How can I make
> it work on the application window? It seem to be that
> application window can be set to focus by only one
> single click and without modifier key.

Hmm, works for me. Can you provide me all your Style
and GlobalOpt lines? Perhaps I can see it then, but
from looking at the code I can't imagine how this can happen.

> I try make use of "mouse" command in the .fvwm2rc file
> such as:
>
> mouse 0 W A Focus
>
> This command will bring the focus to the window, but
> I cannot do any action with any mouse click to the
> window any more. So, this command doese not help.
> Do you know any work-around for it?

Like I said, it should work. What version of fvwm are you
using?

>
> --- Dominik Vogt <dominik.vogt_at_gmx.de> wrote:
> > 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, 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 Wed Mar 31 1999 - 18:01:49 BST

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