From: root Date: Mon, 30 Apr 2007 15:07:09 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=86f14ba266aad1e6e13cafd9f8de294d614187a0;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/Changes b/Changes index 0d4ddad7..d42e3986 100644 --- 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. diff --git a/src/command.C b/src/command.C index 97ff9693..893afade 100644 --- a/src/command.C +++ b/src/command.C @@ -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;