Well unfortunatelly a while back I tried a code fix to this as well and
had equally poor results, and I do have a pretty good understanding of
the event model.
What I did find works is if I hit Num Lock on, all my bindings seem to
get passed through to the vnc window, instead of the external fvwm. I
never figured out why it worked, but then again I didn't want to start
messing with it and have it break. So try num lock and let me know if
it works for you as well.
Brad
On Wed, Jun 16, 1999 at 07:38:50PM -0400, John Carol Langford wrote:
> I've been playing with VNC (http://www.uk.research.att.com/vnc/)
> lately and ran into a context switching problem.
>
> The basic problem is that fvwm captures key events that you would like
> to pass to VNC and the fvwm running for the Xvnc server. For example,
> if you have:
>
> Key F4 A M Destroy
>
> and do an alt-F4 over the vnc window, you will destroy the vnc window.
> Instead, I'd like to have the alt-F4 passed into the VNC window where
> the fvwm running on the Xvnc server can be commanded to destroy a
> window.
>
> Does anyone have a good solution to this?
>
> I'd like to not arrange to have different command sets for the
> internal and external fvwms - it becomes too confusing.
>
> I messed with the code of void HandleKeyPress() to make it pass events
> to the vnc window directly like so:
>
> if (Tmp_win && Tmp_win->frame_width == 1284 ) /*my quick little
> hack to test if the window is a vnc window*/; else for (key
> = Scr.AllBindings; key != NULL; key = key->NextBinding) { if
> ((key->Button_Key == Event.xkey.keycode) && ((key->Modifier
> == (modifier&(~LockMask)))|| (key->Modifier == AnyModifier))
> && (key->Context & Context)&& (key->IsMouse == 0)) {
> ExecuteFunction(key->Action,Tmp_win, &Event,Context,-1); return; } }
>
> /* if we get here, no function key was bound to the key. Send it *
> to the client if it was in a window we know about. */
>
> This doesn't quite work. It appears to pass an 'Alt' fine but not an
> 'Alt+F4'. I suspect I don't fully understand the fvwm event model.
> Any ideas?
>
> -John
--
--- There are two kinds of knowledge, you either know the answer or
you know where to find it
-Kane, Johnson, and anonymous
--
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 Jun 16 1999 - 20:10:55 BST