On 12-Feb-97 Joey Hess wrote:
>Kai Grossjohann:
>> Joey> In my fvwmrc, I have:
>>
>> Joey> # This just raises windows on a single click.
>> Joey> AddToFunc raise_func
>> Joey> + "C" Raise
>> Joey> # Bind it to any click in a window.
>> Joey> Mouse 0 W A raise_func
>> Joey> # Make sure to pass the click events to the program in the window.
>> Joey> GlobalOpts MouseFocusClickRaises
>>
>> Joey> What'm I doing wrong?
>>
>> Do *not* bind the mouse click with "Mouse 0 W A raise_func".
>> MouseFocusClickRaises binds all three mouse buttons all by itself.
>
>I tried adding just "GlobalOpts MouseFocusClickRaises" to my fvwmrc, getting
>rid of the other stuff. But clicking in a window does not raise it.
>
>Where can I find docs on this, or a fvwmrc that actually has it working?
>--
I had to apply the following patch to the fvwm source. I got it from the
mailing list archives. I don't have the authors name handy right now.
I had to apply the patch with the -F 3 option, otherwise it wouldn't work with
the 2.0.45 sources. After that the GlobalOpts MouseFocusClickRaises worked.
Does anyone know if there is a way to have the ClickRaises option work with
SloppyFocus? I have SloppyFocus set right now, but I get MouseFocus if I set the
MouseFocusClickRaises options. Given the name of the option, it looks like that
is what is intended.
<begin patch>
diff -u -r1.2 add_window.c
--- 1.2 1997/01/22 22:31:52
+++ add_window.c 1997/01/22 22:34:34
_at_@ -622,10 +622,8 @@
&a,&b,&JunkChild);
tmp_win->xdiff -= a;
tmp_win->ydiff -= b;
-#ifndef CLICKTORAISE
- if(tmp_win->flags & ClickToFocus)
+ if((tmp_win->flags & ClickToFocus) || Scr.MouseFocusClickRaises)
{
-#endif
/* need to grab all buttons for window that we are about to
* unhighlight */
for(i=0;i<3;i++)
_at_@ -638,9 +636,7 @@
ButtonPressMask, GrabModeSync,GrabModeAsync,None,
Scr.FvwmCursors[SYS]);
}
-#ifndef CLICKTORAISE
}
-#endif
BroadcastConfig(M_ADD_WINDOW,tmp_win);
BroadcastName(M_WINDOW_NAME,tmp_win->w,tmp_win->frame,
<end patch>
bart
bart hoekstra (303)278-8700
Blackhawk Geometrics fax(303)278-0789
bart_at_blackhawkgeo.com
http://www.blackhawkgeo.com
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Wed Feb 12 1997 - 11:18:19 GMT