Skip to content

LordOS — a free, fast and secure GNU/Linux distribution based on Debian, with its own desktop environment: display server and Wayland compositor in C, a React UI engine on QuickJS, and private native apps.

Merge v083-xwayland (0.8.3)

Federico Pereirae578d5c54afd
diff --cc CHANGELOG.md
index dfc16c8,42124c6..e9e232a
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -10,7 -10,39 +10,37 @@@ of the matching [GitHub release](https:
## [Unreleased]
+ ## [0.8.3] - Unreleased
+
+ ### Added
+
+ - **X11 apps.** Programs that only speak X11 (xterm, Java/Swing apps, many games and older tools)
+ now open in LordOS through Xwayland (the `xwayland` package), with the theme's window frame, their
+ icon in the Dock (matched to their launcher by `WM_CLASS`), menus and tooltips above everything,
+ fullscreen, minimize and close, and LordOS's cursor. Xwayland only starts when an X11 app
+ connects and stops 10 seconds after the last one closes. LordOS's own X window manager is
+ written in C and speaks the X11 protocol itself, without new libraries in `lord-server`.
+ - **Clipboard with X11 apps**, both ways, for the normal clipboard and the primary selection
+ (select to copy, middle click to paste); large copies and images included.
+ - **Primary selection for Wayland apps** (middle-click paste between GTK, Qt and other apps).
+
+ ### Security
+
+ - X11 apps run in their app's scope, so per-app firewall rules and the Monitor apply to them.
+ - X11 apps never see Wayland apps, LordOS's screen, Passwords or the keyring prompt, nor the keys
+ typed into them; what is copied outside X enters X only while an X window has the keyboard, and
+ passwords copied in Passwords never do. Synthetic input between X11 apps (XTEST) is off.
+ Xwayland runs without network, in its own scope. X11 apps can still see each other, as in any X11
+ desktop (see the privacy documentation).
+ - Apps with device or "no files" restrictions get no X display.
+ - Clipboard offers to Wayland apps are bound to the selection they were made for and to the app
+ with the keyboard.
+
+ ### Fixed
+
-- Typing into search, the app launcher or a system prompt while a Linux app was in front sent the
- keys to that app instead.
+ - Java (AWT/Swing) windows were blank or shifted (non-reparenting window manager).
+
-## [0.8.2] - Unreleased
+## [0.8.2-beta] - 2026-10-19
### Added
diff --cc docs/LAYERS.md
index f386ec9,0a0504b..bd5f462
--- a/docs/LAYERS.md
+++ b/docs/LAYERS.md
@@@ -80,11 -80,11 +80,11 @@@ import { Layer, Overlay, LAYERS } from
- Used today by: the shell's menus, the SDK's `MenuButton`, the «fill from Passwords» button
(`AutofillButton`), Settings' pop-up buttons and Passwords' pop-up menus. Calendar, Contacts and
Reminders keep their own per-window popover host; the Terminal's preferences use an inline list.
-- **The keyboard.** While anything shows in the `overlay`, `modal` or `system` layers (search, the
- launcher, sheets, system prompts), no Linux app (Wayland or X11) gets the keys: `runtime/index.js`
- counts each layer's children after every commit and `sdk/wayland.js` gives the compositor focus 0
- (0.8.3; `PRIVACY.md`, "X11 apps"). `popover` (menus, the clipboard and emoji panels, which paste into
- the app in front) keeps the app's keyboard.
+- **The keyboard (0.8.2).** While anything shows in the `overlay`, `modal` or `system` layers (search,
- the launcher, sheets, system prompts), no Linux app gets the keys: `runtime/index.js` counts each
++ the launcher, sheets, system prompts), no Linux app (Wayland or X11) gets the keys: `runtime/index.js` counts each
+ layer's children after every commit and `sdk/wayland.js` gives the compositor keyboard focus 0
+ ([PRIVACY.md](PRIVACY.md#system-prompts-take-the-keyboard-082)). `popover` (menus, the clipboard and
+ emoji panels, which paste into the app in front) keeps the app's keyboard.
- **Don't** fight the order with large `zIndex` values: they only order siblings. A new kind of
surface gets a row in the table above (and in `sdk/layers.js`) instead.
diff --cc server/Makefile
index b19105d,8691de6..3efe777
--- a/server/Makefile
+++ b/server/Makefile
@@@ -218,9 -219,15 +219,15 @@@ build/sign-test: tests/sign_test.c src/
test: build/codesig-test
build/codesig-test: tests/codesig_test.c src/sec/codesig.c src/sec/json.c src/pkg/crypto.c src/sec/codesig.h src/sec/json.h src/pkg/crypto.h build/gen/codesig_build.h
@mkdir -p build
- $(CC) $(CPPFLAGS) $(CFLAGS) $(WARN) -std=c11 -o $@ tests/codesig_test.c src/sec/codesig.c src/sec/json.c src/pkg/crypto.c
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(WARN) -std=c11 -o $@ tests/codesig_test.c src/sec/codesig.c src/sec/json.c src/pkg/crypto.c -lpthread
./$@ ../tools/release/lordos-release.pub.pem || { rm -f $@; exit 1; }
# Clock time zones: TZif and POSIX rules against glibc (docs/SYSTEM.md)
+ # tests/xwm_test.c: the X11 wire helpers of the window manager (src/wl/x11wire.c, docs/WAYLAND.md)
+ test: build/xwm-test
+ build/xwm-test: tests/xwm_test.c src/wl/x11wire.c src/wl/x11wire.h
+ @mkdir -p build
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(WARN) -std=c11 -o $@ tests/xwm_test.c src/wl/x11wire.c
+ ./$@ || { rm -f $@; exit 1; }
test: build/tzif-test
build/tzif-test: tests/tzif_test.c src/ui/tzif.c src/ui/tzif.h
@mkdir -p build