Xephyr
More info
- Type
- Nested X server
- License
- MIT
- Predecessor
- Xnest
An X server that runs inside a window on another X server: a desktop within the desktop.
The older answer was Xnest, which acted as a go-between, accepting requests and passing them on to the host server. That tied it to whatever the host could do, so an extension the host lacked was missing inside too. Xephyr, which grew out of the kdrive project in the mid-2000s, renders into its own framebuffer and just shows the result as an image in a window. That lets it offer Composite, RandR and the rest regardless of the host.
Its main job is testing window managers without gambling with the session you're sitting in. Crash the inner server as often as you like and the outer one never notices. Sandboxing tools use the same trick to fence off untrusted programs, since plain X lets any client read every other client's keystrokes.