--- rxvt-unicode/src/command.C 2006/08/22 13:07:17 1.315 +++ rxvt-unicode/src/command.C 2007/01/13 15:26:56 1.318 @@ -1460,11 +1460,13 @@ break; case FocusIn: - focus_in (); + if (ev.xfocus.detail != NotifyInferior && ev.xfocus.detail != NotifyPointer) + focus_in (); break; case FocusOut: - focus_out (); + if (ev.xfocus.detail != NotifyInferior && ev.xfocus.detail != NotifyPointer) + focus_out (); break; case ConfigureNotify: @@ -1481,7 +1483,7 @@ HOOK_INVOKE ((this, HOOK_CONFIGURE_NOTIFY, DT_XEVENT, &ev, DT_END)); -#ifdef TRANSPARENT /* XXX: maybe not needed - leave in for now */ +#ifdef TRANSPARENT if (OPTION (Opt_transparent)) check_our_parents (); #endif