Historical: Linux-based prototype
Compositor
This page documents the earlier Linux-based prototype as of 24 November 2026. It does not describe the independent Khelforge OS, and its steps are not instructions for it. See the independent Khelforge OS.
The compositor is the Wayland server that receives each application’s picture, decides where its window goes and draws the result. Khelforge has its own, built on Qt Wayland Compositor. It runs real applications in a nested session and in a virtual machine. Protocol coverage is narrow, and one set of protocol tests is still open.
How it works
Section titled “How it works”Applications connect to the compositor with Wayland and appear as windows inside it. It has one output, the screen it runs on.
Diagram as text
- Application → Window rules: Wayland
- Window rules → Desktop picture
- Desktop picture → Display
- Application: draws its window
- Window rules: position, focus, state
- Desktop picture: drawn with OpenGL
- Display: cage or a desktop window
Drawing uses OpenGL on one thread. The multi-threaded mode of Qt Quick crashed on NVIDIA and is not used.
Protocols
Section titled “Protocols”| Feature | State |
|---|---|
| Application windows and popups (xdg-shell) | Offered. Popup grabs are incomplete |
| Title bars drawn by the desktop | Offered and preferred |
| Idle inhibit | Offered, used by the idle lock |
| Keyboard, pointer and clipboard | Offered by Qt |
| Layer shell, portals, XWayland | Not present |
| Fractional scaling, variable refresh, HDR, tearing control, direct scan-out | Not present |
Foot 1.28, a terminal, does not run because it needs newer protocol versions than Qt offers.
Protocol tests
Section titled “Protocol tests”The protocol tests open windows and popups and exchange clipboard text. The compositor does not keep a clipboard selection after the source application closes.
This work is still in testing. Copy and paste between applications is listed as pending in those tests. See the roadmap.
Standalone use
Section titled “Standalone use”The compositor can run as a window inside another desktop, or as the signed-in session itself. In the second case cage owns the screen and the compositor runs inside it. A standalone session that cannot follow its logind session ends, because it could not be locked safely. See sessions.
How it was tested
Section titled “How it was tested”- Unit tests for window rules, the launcher, the session lock, the idle lock, controller activity and logind.
- A visual test that drives the whole session without a screen.
- Tests in disposable virtual machines, with software rendering in the guest.
- Nested runs on one development laptop with an NVIDIA graphics card.
Known limitations
Section titled “Known limitations”- One output only. No display hot-plug.
- Real hardware has not run the standalone session.
- Clients that insist on drawing their own title bar get no Khelforge title bar.
- Windows programs and X11 programs cannot run in it. There is no XWayland.
- Qt Wayland Compositor is available under a commercial licence or GPL version 3. A licence review must come before any release.
What is planned
Section titled “What is planned”The long-term display path has not been chosen, so the present base may be replaced.