[PATCH] Also call HOOK_KEY_PRESS for resource-defined keys
Wolfgang Schnerring
wosc at wosc.de
Thu Mar 19 19:01:18 CET 2009
Hello,
* Martin Pohlack <mp26 at os.inf.tu-dresden.de> [2009-03-11 23:17]:
> 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.
I am encountering a similar problem (as are people here
http://article.gmane.org/gmane.comp.terminal-emulators.rxvt-unicode.general/21
and here http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=511377):
If the mouse pointer is not inside the tab contents (e. g. outside the window or
over the tab bar), some keyboard commands are ignored, most notably Shift+PgUp,
Shift+PgDn, Shift+Insert, but also keys bound to extension-commands via
Xresources. (Key commands not belonging to rxvt, and the tabbed-extensions
Shift-Arrow work fine, though.)
> 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.
I've applied Martin's patch (against 9.05 that my Gentoo box had lying around).
It changed the behaviour as follows:
- rxvt has focus, but mouse pointer is outside the tab contents
- I press Shift+PgUp
[nothing happens]
- I remove the focus by switching to a different window
[it scrolls up a page]
Which is... not quite solving the issue. ;-)
I've skimmed though src/command.C, but I must confess I'm completely out of my
depth trying to understand what is going on, with or without the patch, or what
should be going on, and how the mouse has anything to do with the processing of
keyboard events. %-(
Can anybody shed some light on this issue?
Thanks for your help,
Wolfgang
More information about the rxvt-unicode
mailing list