Emacs: only activate ECB when in X.