X11 dock bridge: show and control host EWMH windows under --x11
CI / test (push) Failing after 2m37s
CI / test (push) Failing after 2m37s
Under --x11 with a host EWMH window manager (e.g. Openbox in Gamerig), Chandra is one top-level X11 client while other apps run directly on Xorg, so the dock only saw Chandra's Wayland windows. - compositor/x11: intern EWMH/ICCCM atoms and track _NET_CLIENT_LIST, _NET_ACTIVE_WINDOW, titles, and window states via PropertyChangeMask, filtering non-taskbar/child windows and adding focus, close, minimize, and toggle-maximize EWMH/ICCCM actions. - compositor/shell: add resolve_external_app_id (matching WM_CLASS and StartupWMClass against installed .desktop files) and publish_windows. - compositor/host: bridge ExternalWindow entries with bit-30 tagged IDs into shell.windows/win_list while keeping Wayland wm.windows and session snapshots untouched, and route activate_task / window_command actions. - compositor/app, compositor/bin, docs/x11.md: wire external window sync before X11 input handling and register ExternalWindowHandler. Verified: moon test --target native compositor/x11 compositor/shell (38/38), external_windows_test.mbt + dock_test.mbt (3/3), build-compositor-wasm.sh, and moon build --target native compositor/bin.
This commit is contained in:
1 parent
15b7c3f0e3
commit
1871d50a3e
12 files changed
+949
-68
No files matched your search
+4
-3
@@ -76,9 +76,10 @@ desktop through a display manager.
|
||||
fail, exactly as on the DRM backend. Running on Xorg makes Chandra *start* on NVIDIA; it does not
|
||||
give its apps hardware acceleration. See docs/kiosk-gamerig.md (G4).
|
||||
* **X11-only apps run on the X server, not in Chandra.** `DISPLAY` stays set, so an app that only
|
||||
speaks X11 (Steam, xterm) opens on Xorg directly: under a window manager it is a window beside
|
||||
Chandra's; in whole-screen mode it maps on top of Chandra with no window manager to move it.
|
||||
Chandra has no Xwayland.
|
||||
speaks X11 (Steam, xterm) opens on Xorg directly: under an EWMH window manager it is a window
|
||||
beside Chandra's, and Chandra tracks `_NET_CLIENT_LIST` / `_NET_ACTIVE_WINDOW` so the panel's
|
||||
dock shows and switches to it; in whole-screen mode it maps on top of Chandra with no window
|
||||
manager to move it. Chandra has no Xwayland.
|
||||
* Only local displays (`:0`, `unix:0`): no TCP displays or `ssh -X`.
|
||||
* Keyboard layout groups: the group is always reported as 0, so layout switching through XKB
|
||||
groups (two layouts with a toggle key) shows the first layout's symbols in Wayland apps.
|
||||
|
||||
Reference in new issue
Block a user