xsession: workaround a bug in XI focus-in events.

See: https://bugzilla.gnome.org/show_bug.cgi?id=677329