[PATCH] Early hook invocation (was: Urxvt tabbed(ex) scroll doesn't work when mouse is not inside urxvt window)

Vas No Medas vasnomedas at gmail.com
Thu Mar 6 21:54:17 CET 2014


I've found that if remove this return:

+++ command.C    2014-03-06 22:42:00.754173116 +0200
@@ -410,10 +410,12 @@
   int valid_keysym;
   char kbuf[KBUFSZ];

-  // allow early handling of events for plugins
-  if (HOOK_INVOKE ((this, HOOK_KEY_PRESS, DT_XEVENT, &ev, DT_END)))
-    return;
-
+  // allow early handling of events for plugins
+   if (HOOK_INVOKE ((this, HOOK_KEY_PRESS, DT_XEVENT, &ev, DT_END)))
+     ;
+
+
+
 #if ISO_14755
   if (iso14755buf & ISO_14755_52)
     return;

everything works OK - both scrolling without mouse focus and tabbedex
renaming and url selecting.

Is this return essential?

On Thu, Mar 6, 2014 at 10:29 PM, Vas No Medas <vasnomedas at gmail.com> wrote:

> Hello!
>
> I've stumbled upon a little problem with using this patched urxvt.
> After installing urxvt-perls and using url-select plugin from there I've
> seen the following behaviour: I press Alt+U to enter url selecting mode and
> after that the terminal ignores any input (tried Esc, different
> combinations, but no luck, it was just frozen). The same with tabbedex
> extension when I try to rename tab.
> For example in tabbedex the problem starts when sub tab_key_press returns
> 1 instead of ()
> After that the $keysym:
> >sub tab_key_press {
> >   my ($self, $tab, $event, $keysym, $str) = @_;
> the $keysym is always empty after tab_key_press returns 1 instead of ()
>
> Maybe you've got ideas why this could happen?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20140306/4b6bde16/attachment.html>


More information about the rxvt-unicode mailing list