Historical: Linux-based prototype
Window management
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.
Khelforge manages floating windows with title bars, like a traditional desktop. The rules are implemented, with unit tests, automated visual tests in an offscreen session, and checks in the disposable VM. They have not been used on real hardware outside nested sessions.
Placement
Section titled “Placement”- New windows open in the centre of the work area. Each following window is moved a little, so it does not cover the one before.
- The work area is the screen without the top bar and the dock.
- A window larger than the work area is asked to become smaller. The frame then follows the size the application really commits.
- Applications that set a minimum or maximum size keep it.
Title bar and frame
Section titled “Title bar and frame”| Action | Result |
|---|---|
| Drag the title bar | Moves the window |
| Double-click the title bar | Maximises or restores |
| Minimise, maximise and close buttons | Do what they say |
| Drag an edge or corner | Resizes, down to a smallest size |
| Alt+F4 | Asks the focused window to close |
Resizing from the frame is off while a window is maximised or snapped. Requests that the application makes itself, for maximise, minimise and fullscreen, are handled too.
Closing always sends a close request. The compositor never kills the program. An application can refuse, for example to ask about unsaved work.
Clicking a window focuses it. A newly opened window takes the keyboard only in these cases:
- No other window has the keyboard.
- It belongs to the same program as the focused window.
- Its program was just started from the launcher or dock. This is allowed once, for a short time.
Any other new window opens below the active one. This stops a program in the background from taking your keystrokes.
Fullscreen
Section titled “Fullscreen”Fullscreen covers the whole screen and hides the top bar and dock. The keyboard shortcut toggles it.
How it was tested
Section titled “How it was tested”Unit tests cover geometry, focus, states and workspaces. A visual test drives maximise, minimise, fullscreen, snapping and closing with the keyboard. The VM suite checks that the keyboard moves to the remaining window after Alt+F4, and that new windows get focus as described.
Known limitations
Section titled “Known limitations”- No window menu, no always-on-top, no tiling layouts.
- No close animation, because the picture is gone when the application closes.
- A window that insists on its own decorations gets no Khelforge title bar.
- An application is not told that it is tiled, so snapped windows are given a plain size.
- Unmanaged X11 windows cannot exist, because there is no XWayland.