*** empty log message ***
authorroot <root>
Mon, 30 Apr 2007 15:07:09 +0000 (15:07 +0000)
committerroot <root>
Mon, 30 Apr 2007 15:07:09 +0000 (15:07 +0000)
Changes
src/command.C

diff --git a/Changes b/Changes
index 0d4ddad7646cd410ba525f20f9b582bcde6ca41c..d42e3986a20b02334b2da62d1c71d23171ce0c32 100644 (file)
--- a/Changes
+++ b/Changes
@@ -22,6 +22,8 @@ DUMB: support tex fonts
 
 TODO: add bell event (or generic event to act on such controls).
        - nuke reconf script, serves no purpose anymore.
+        - do not process focus events caused by grabs
+          (patch by Mikachu).
 
 8.2  Sat Feb 17 21:35:28 CET 2007
        - fix make depend in src/, reported by exg.
index 97ff9693e5860cd26b06ba6f4ae36a5236d20e77..893afade3c74721595a3418962fac522b443c2dd 100644 (file)
@@ -1460,12 +1460,16 @@ rxvt_term::x_cb (XEvent &ev)
         break;
 
       case FocusIn:
-        if (ev.xfocus.detail != NotifyInferior && ev.xfocus.detail != NotifyPointer)
+        if (ev.xfocus.detail != NotifyInferior
+            && ev.xfocus.detail != NotifyPointer
+            && ev.xfocus.mode != NotifyGrab)
           focus_in ();
         break;
 
       case FocusOut:
-        if (ev.xfocus.detail != NotifyInferior && ev.xfocus.detail != NotifyPointer)
+        if (ev.xfocus.detail != NotifyInferior
+            && ev.xfocus.detail != NotifyPointer
+            && ev.xfocus.mode != NotifyGrab)
           focus_out ();
         break;