The bug affects tabbed extension and makes it impossible to scroll with
Shift+PgUp and Shift+PgDn unless mouse pointer is above the tab
terminal.

To reproduce:
1. Start rxvt-unicode with tabbed extension enabled.
2. Run ‘seq $((LINES * 5))’ or similar command to produce multiple
   screens of text.
3. Focus the terminal window and move mouse pointer over it.
4. Press Shift+PgUp and observe content scroll up.
5. Move mouse pointer outside of the terminal window while *keeping*
   input focus in the window.
6. Press Shift+PgUp or Shift+PgDn.
Expected: Content scrolls up or down (as in step 4).
Observed: Nothing happens.

This patch is based on Martin Pohlack <[email protected]> sent
a long while back but that patch introduced bugs in how key_press and
key_release events were passed to the extensions.  Those changes however
aren’t necessary and all that needs to be changed is:

diff -Naur rxvt-unicode.orig/src/rxvtperl.xs rxvt-unicode/src/rxvtperl.xs
--- rxvt-unicode.orig/src/rxvtperl.xs   2016-07-15 17:17:02.379670570 +0000
+++ rxvt-unicode/src/rxvtperl.xs        2016-07-15 17:16:45.643920679 +0000
@@ -1569,6 +1569,9 @@
           THIS->key_release (xkey);
         else
           THIS->key_press (xkey);
+
+        // similar refresh check as in standalone x_cb() function
+        THIS->refresh_check();
 }
 
 void

-- 
Best regards
ミハウ “𝓶𝓲𝓷𝓪86” ナザレヴイツ
«If at first you don’t succeed, give up skydiving»

_______________________________________________
rxvt-unicode mailing list
[email protected]
http://lists.schmorp.de/mailman/listinfo/rxvt-unicode

Reply via email to