Hi Marc,
I noticed a strange problem with the tabbed extension: if the mouse
pointer is outside the actual tab contents (inside or outside the
terminal window) some keystrokes seem to have no effect in the active
tab. After some investigation, all keystrokes for which I have
resource definition in place are pertained.
The problem seems to be that no HOOK_KEY_PRESS is invoked in or before
the translation (call of keyboard->dispatch) in
keyboard.C:rxvt_term::key_press.
I inserted a hook call before the dispatch call and all seems to work
well now with tabs. Please see attached patch for a solution draft.
Cheers,
Martin
Index: src/command.C
===================================================================
RCS file: /schmorpforge/rxvt-unicode/src/command.C,v
retrieving revision 1.431
diff -u -r1.431 command.C
--- src/command.C 24 Feb 2009 11:51:51 -0000 1.431
+++ src/command.C 11 Mar 2009 23:15:14 -0000
@@ -487,6 +487,8 @@
if (valid_keysym)
{
+ if (HOOK_INVOKE ((this, HOOK_KEY_PRESS, DT_XEVENT, &ev, DT_INT, keysym,
DT_STR_LEN, kbuf, len, DT_END)))
+ return;
#ifdef KEYSYM_RESOURCE
if (keyboard->dispatch (this, keysym, ev.state))
return;
_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/rxvt-unicode