Thanks to Eric Mercer, I solved the problem I had in OS X X11 with Emacs where Emacs would launch, but trying to invoke any sort of popup menu made it crash with X protocol error: BadWindow (invalid Window parameter) on protocol request 38
I wanted to be careful with ForwardX11Trusted
, as it’s related to security, so my solution was to not alias ssh or edit /etc/ssh_config
but rather to add ForwardX11Trusted yes
lines to specific hosts in my ~/.ssh/config
that I trust (e.g.: my personal machines; not my shared web hosting machine).