X11 myth: X11 is not secure
This video shows xkbcat, a keylogger for x11 being restricted to windows it owns only, preventing keylogging. Bottom right is xkbcat running in a terminal and top right is a window it owns. As you can see, it can only see keys that were input to a window it owns. This method allow certain programs to get global key access, such as the window manager, so it doesn’t break systems running x11.