Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/architecture/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ A scene is a window of the app's one engine, as a desktop window is (decided for

X11 placement and stacking ran in isolated Xvfb sessions under Openbox (2026-11-22), with a separate Xlib observer and XTest clicks. Decorated and undecorated windows moved to requested positions, preserved their outer corner through a width-only resize, reported external moves, and applied a position requested while hidden after mapping. Native minimum-size clamping left no stale restoration. The tests passed at whole scales 1 and 2 and with GTK client-side decorations; a floating window remained above a second window activated by a native click, and normal level restored ordinary stacking. GNOME on Xorg, KDE on X11 and explicit Wayland layer surfaces remain in #1379 and #1377.

Linux's native resize tests run under Xvfb with GTK's Cairo renderer (2026-11-22): each allocation grows or shrinks the actual surface widget, and the root's native allocation and its snapshot's corner marker agree with the new layout before the callback returns. A held engine proves the 16 ms timeout, skipped repeat waits, late idle commits and resumed synchronous allocation; a queued-batch test covers recursive drains. Restoring the old asynchronous resize fails the allocation test, and removing the pending-wait guard makes 12 busy allocations wait about 194 ms. Compositor-driven edge drags on Windows, X11 and Wayland remain in the roadmap.
Linux's native resize tests run under Xvfb with GTK's Cairo renderer (2026-11-22): each allocation grows or shrinks the actual surface widget, and the root's native allocation and its snapshot's corner marker agree with the new layout before the callback returns. A held engine proves the 16 ms timeout, skipped repeat waits, late idle commits and resumed synchronous allocation; a queued-batch test covers recursive drains. Restoring the old asynchronous resize fails the allocation test, and removing the pending-wait guard makes 12 busy allocations wait about 194 ms. Live resizes have opt-in checks with `NSGO_LIVE_RESIZE=1` that read the screen through a window whose app takes 12 ms to style each size (2026-11-24). On Windows 11 `TestEdgeDragShowsEachSizeLaidOut` drags the right edge with the system pointer through the sizing loop, 400 pixels out and back: no sample shows a stretched frame or the window's background, where without the wait about 40 of 240 do, and a 40 ms app shows them either way. DWM can still show the window at its last extent for a composition, clipping the new layout. Under Hyprland 0.56 `TestCompositorResizeShowsEachSizeLaidOut` steps a floating window's width: every allocation gets its commit within the wait, yet nearly every step shows the previous size's layout at the new size for tens of milliseconds, and about half of them with a 4 ms app; an app that styles at once shows each size. X11 window managers remain unchecked.

`internal/platform/linux/paneldock_native_test.go` checks the compositor's actual PNG pixels for four dock edges on two outputs at scales 1 and 2, content growth/shrink, hide/show and real keyboard delivery to the original window. Run with `NSGO_LAYER_SHELL_TEST=1`, `GDK_BACKEND=wayland`, `grim` and `wtype` against an isolated headless Sway with two `HEADLESS-` outputs (800×600 at scale 1, 1200×800 at scale 2); the fixture refuses other output names. Separate processes with `NSGO_LAYER_SHELL_UNAVAILABLE` set to the expected error substring check the missing-library and preloaded-libwayland cases while ordinary windows still show. `NSGO_X11_DOCK_TEST=1` opts into real X11 geometry checks under isolated Xvfb/Openbox. macOS's `TestEdgeDockedPanelUsesNativeScreenFrames` reads actual app-owned panel frames through resizing and reopening. Physical mixed-scale displays remain a native acceptance gap.

`internal/platform/ios/scene_test.go` opens a second scene on an iPad simulator (iOS 27, 2026-11-21): each scene shows its own surface in its own window, running a tree of its own, a press in each reaches its own tree, one disconnects and reconnects with its tree while the other runs, closing it ends its tree alone, and each scene's controller answers with its own status bar and orientations; `core/overlay_test.go` checks the trees a scene opens headless. `core/window_test.go` opens windows, panels and tray icons on a platform that opens windows, headless: shared signals, shutdown modes, canceled closes, reopening, keys and owners, tray clicks and menus, shortcuts, the Dock and the login item, and the main view where no windows open. `internal/engine` attaches an opened window and destroys it, and the Windows backend's tests decode the notification area's callbacks. On macOS `examples/tray` was run: its welcome window, its panel under the icon after a click, a close that keeps the app, and the gallery ending with its window. A panel placed with `ShowAt` and `MoveTo` was run on macOS 27, Windows 11 and Ubuntu 24.04 on Xwayland (2026-11-16): beside, flipped above at the bottom of the display and at a point; with `NoActivate` the app in front kept the foreground through its show, a click on its button that ran the handler, its moves and a toggle, while a panel without it took the keyboard; on Wayland `ShowAt` reported that it could not place the panel. `driver.PlaceWindow`'s flips and clamps have a test of their own. A window's pointer events are checked headless in `core/window_test.go` (the options, the setter and `AccessOverlay`) and `nsgotest`, `driver.Painted` has a table test, and `internal/platform/macos` opens a window with a painted view and checks `ignoresMouseEvents` and the painted hit test on macOS 27 (2026-11-17); the Windows backend's native test checks the extended style, compiled and not run. Linux's two-window native regression runs through XTest with Openbox and a virtual pointer with private Sway: presses, wheel and hover pass through `None` and the gaps in `Painted`, the island takes presses, wheel, hover, context menus and native window drags, nearer controls keep their presses, and `Auto` restores the input region without replacing either window ([roadmap](../roadmap.md#application-and-windows)). `core/window_test.go` checks that a fitted panel's size goes ahead of its first show and follows its content up to its largest size, and that `Transparent` reaches the platform and `Env`; a transparent fitted card was run on macOS 27 (2026-11-17), showing only the card and its shadow; on Linux under Xvfb, `internal/platform/linux/panel_native_test.go` shows a transparent fitted panel beside its anchor and checks its pixels and X11 position as it grows and shrinks, while Windows was only built and vetted.
`internal/platform/ios/scene_test.go` opens a second scene on an iPad simulator (iOS 27, 2026-11-21): each scene shows its own surface in its own window, running a tree of its own, a press in each reaches its own tree, one disconnects and reconnects with its tree while the other runs, closing it ends its tree alone, and each scene's controller answers with its own status bar and orientations; `core/overlay_test.go` checks the trees a scene opens headless. `core/window_test.go` opens windows, panels and tray icons on a platform that opens windows, headless: shared signals, shutdown modes, canceled closes, reopening, keys and owners, tray clicks and menus, shortcuts, the Dock and the login item, and the main view where no windows open. `internal/engine` attaches an opened window and destroys it, and the Windows backend's tests decode the notification area's callbacks. On macOS `examples/tray` was run: its welcome window, its panel under the icon after a click, a close that keeps the app, and the gallery ending with its window. A panel placed with `ShowAt` and `MoveTo` was run on macOS 27, Windows 11 and Ubuntu 24.04 on Xwayland (2026-11-16): beside, flipped above at the bottom of the display and at a point; with `NoActivate` the app in front kept the foreground through its show, a click on its button that ran the handler, its moves and a toggle, while a panel without it took the keyboard; on Wayland `ShowAt` reported that it could not place the panel. `driver.PlaceWindow`'s flips and clamps have a test of their own. A window's pointer events are checked headless in `core/window_test.go` (the options, the setter and `AccessOverlay`) and `nsgotest`, `driver.Painted` has a table test, and `internal/platform/macos` opens a window with a painted view and checks `ignoresMouseEvents` and the painted hit test on macOS 27 (2026-11-17); the Windows backend's native test checks the extended style. On a Windows 11 desktop (2026-11-24) `TestWindowPointerModesRouteTheSystemPointer`, opt-in with `NSGO_LIVE_POINTER=1`, lays one window over another and moves the system pointer with `mouse_event`. Presses, wheel turns and hovers reach the window below through `None` and around a `Painted` island. The island takes its own presses, wheel, hover, context menu and a `WindowDrag` of its strip, while a control in the strip keeps its press. `Auto` takes everything again without replacing the window. This holds in a plain window and a Mica one drawn through DirectComposition, which still shows its content while layered. Linux's two-window native regression runs through XTest with Openbox and a virtual pointer with private Sway: presses, wheel and hover pass through `None` and the gaps in `Painted`, the island takes presses, wheel, hover, context menus and native window drags, nearer controls keep their presses, and `Auto` restores the input region without replacing either window ([roadmap](../roadmap.md#application-and-windows)). `core/window_test.go` checks that a fitted panel's size goes ahead of its first show and follows its content up to its largest size, and that `Transparent` reaches the platform and `Env`; a transparent fitted card was run on macOS 27 (2026-11-17), showing only the card and its shadow; on Linux under Xvfb, `internal/platform/linux/panel_native_test.go` shows a transparent fitted panel beside its anchor and checks its pixels and X11 position as it grows and shrinks, while Windows was only built and vetted.
4 changes: 2 additions & 2 deletions docs/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,15 +141,15 @@ What Windows and Linux still lack of what macOS opens for an app, and Android of
| --- | --- | --- |
| Editing menu validation on Windows and Linux | [#2018](https://github.com/nsgo-dev/nsgo/issues/2018), [menus](architecture/services.md#menus) | Undo, Redo and selection-dependent menu roles follow the focused editor’s history and selection; these backends currently dispatch editing roles without native menu validation |
| Owned-window placement and Wayland acceptance | `WindowOptions.Parent` (#108), [#1840](https://github.com/nsgo-dev/nsgo/issues/1840) | Center a new child over its parent on Windows and where a Linux compositor allows placement; macOS already centers it. Native ownership, visibility and minimization following are implemented on all three desktops; verify stacking and minimize/restore on a Wayland compositor separately from X11. |
| Resizes that keep up on Windows and Linux | macOS's `surface.resize`, [#1375](https://github.com/nsgo-dev/nsgo/issues/1375) | Dragging a window's edge on Windows and Linux waits up to 16 ms for the layout at each size before the backend applies it; Linux drains queued batches from GTK's allocation callback and leaves a busy commit to its idle path. Native GTK allocation tests under Xvfb verify growing, shrinking, immediate widget geometry and snapshot pixels, a busy engine's bounded wait, skipped repeat waits and late commits. Live edge drags under Windows, X11 and Wayland compositors remain unchecked (2026-11-22) |
| Resizes that keep up on Windows and Linux | macOS's `surface.resize`, [#1375](https://github.com/nsgo-dev/nsgo/issues/1375) | Dragging a window's edge on Windows and Linux waits up to 16 ms for the layout at each size before the backend applies it; Linux drains queued batches from GTK's allocation callback and leaves a busy commit to its idle path. Native GTK allocation tests under Xvfb verify growing, shrinking, immediate widget geometry and snapshot pixels, a busy engine's bounded wait, skipped repeat waits and late commits. A live edge drag on Windows 11 shows each size laid out for an app within the wait (2026-11-24). Under Hyprland a step resize still shows the previous size's layout at the new size once the app takes a few milliseconds a size, though its commit arrives within the wait; X11 window managers remain unchecked |
| Panels that do not activate on Windows | `WS_EX_NOACTIVATE`; macOS's `NsgoPanel`, [#1376](https://github.com/nsgo-dev/nsgo/issues/1376) | A panel takes the keyboard without activating the app or taking the foreground from the app in front, as macOS's do |
| Panels beside a caret or the pointer | NSGo's [#243](https://github.com/nsgo-dev/nsgo/issues/243), [#1377](https://github.com/nsgo-dev/nsgo/issues/1377) | Check panels placed by `Window.ShowAt` and docked by `PanelOptions.Dock` on physical monitors of mixed scales, and Windows' docked-panel visibility and focus on a visible desktop |
| Panel frame animation on Linux | `WindowFrame.Animated`, [panel frame clocks](architecture/application.md#surfaces) | Visible panels ease to their new native size and supported position on GTK's frame clock; Linux currently applies the frame immediately |
| Android's process apart from its views | NSGo's [#12](https://github.com/nsgo-dev/nsgo/issues/12), [#1378](https://github.com/nsgo-dev/nsgo/issues/1378) | The Go process and its pipe outlive the activity's `NsgoView`, which attaches to them and detaches without ending them, and the pipe names the surface each message is for, so one process drives several views |
| Floating windows on Android | NSGo's [#53](https://github.com/nsgo-dev/nsgo/issues/53) and its [design](architecture/android-floating-windows.md); [#38](https://github.com/nsgo-dev/nsgo/issues/38) for the foreground service | `mobile.OpenOverlay`'s window, which the runtime shows after the user grants `SYSTEM_ALERT_WINDOW`, is checked on Android 12 to 15 devices and an API 29 emulator to take touches, pass them through when passive, be dragged, stay up in the background and with the screen off through its foreground service, end on a revoked grant and close cleanly, and the runtime has the fake-`WindowManager` tests its [verification](architecture/android-floating-windows.md#verification) lists |
| Window levels and placement on Linux | [#573](https://github.com/nsgo-dev/nsgo/issues/573); `XMoveWindow`; `zwlr_layer_shell_v1`, [#1379](https://github.com/nsgo-dev/nsgo/issues/1379) | `SetWindowFrame` positions X11 windows and reports their native positions through `Frame` and `CanPlaceWindows`; isolated Xvfb tests under Openbox verify placement, native moves, hidden-window requests, and that floating stays above a window activated by a native click while normal returns to ordinary stacking (2026-11-22). GNOME on Xorg and KDE on X11 remain unchecked. On Wayland only panels reach the layer shell, through `PanelOptions.Dock` (#1377); ordinary toplevels still report `CanSetWindowLevel` and `CanPlaceWindows` false |
| Alpha-aware painted window media | [#599](https://github.com/nsgo-dev/nsgo/issues/599) | macOS and Windows sample opted-in image pixels, and macOS samples video without controls or a track transform. Windows and Linux video, transformed macOS video, and Linux images still use view bounds. |
| Windows that let the pointer through | NSGo's [#568](https://github.com/nsgo-dev/nsgo/issues/568); `ignoresMouseEvents`, `WS_EX_LAYERED` with `WS_EX_TRANSPARENT`, `gdk_surface_set_input_region`, [#1380](https://github.com/nsgo-dev/nsgo/issues/1380) | Finish manual verification on macOS, Windows 11 and Ubuntu under X11 and Wayland: `WindowPointerNone` passes presses, wheel and hover; `WindowPointerPainted` keeps a 200 by 200 island interactive in a 600 by 400 window, including `WindowDrag` and `OnContextMenu`; modes change without reopening. Native two-window regressions pass under Openbox/X11 and private Sway/Wayland, including nearer-control drag precedence and hover on entry. macOS has property and painted-hit tests, while full native routing remains unchecked; Windows native acceptance, including plain and material DirectComposition windows through `None` and back to `Auto`, remains unchecked |
| Windows that let the pointer through | NSGo's [#568](https://github.com/nsgo-dev/nsgo/issues/568); `ignoresMouseEvents`, `WS_EX_LAYERED` with `WS_EX_TRANSPARENT`, `gdk_surface_set_input_region`, [#1380](https://github.com/nsgo-dev/nsgo/issues/1380) | Finish manual verification on macOS and Ubuntu under X11 and Wayland: `WindowPointerNone` passes presses, wheel and hover; `WindowPointerPainted` keeps a 200 by 200 island interactive in a 600 by 400 window, including `WindowDrag` and `OnContextMenu`; modes change without reopening. Native two-window regressions pass under Openbox/X11 and private Sway/Wayland, including nearer-control drag precedence and hover on entry. On Windows 11 the system pointer passes through `None` and around a `Painted` island, which takes presses, wheel, hover, its context menu and a `WindowDrag`, in a plain window and a Mica one through `None`, `Painted` and back to `Auto`, still showing its content (2026-11-24). macOS has property and painted-hit tests, while its full native routing remains unchecked |
| Nonfixed maximum sizes on Wayland | `xdg_toplevel.set_max_size`, [#1381](https://github.com/nsgo-dev/nsgo/issues/1381) | GTK exposes neither this setter nor a public `xdg_toplevel` handle; X11 maximum-size hints and native GTK minimize/maximize button restrictions are implemented, checked under Openbox at 1× and 2× and with titlebar controls under headless Sway, while Wayland keeps fixed-size support |
| Tray icons on Windows | `Shell_NotifyIcon`; #988, [#1382](https://github.com/nsgo-dev/nsgo/issues/1382) | Live tray views now rasterize into transparent `HICON`s, with updates from retained changes, animation invalidations and completed image loads; cached icons survive metadata updates and an unavailable or restarting Explorer. Finish interactive Windows verification of the visible icon, menus, clicks and panel anchoring through `Shell_NotifyIconGetRect`; a noninteractive session cannot establish that acceptance |
| Tray icons on Linux | StatusNotifierItem and `com.canonical.dbusmenu` over D-Bus; #988, #1209 | KDE and GNOME with its AppIndicator extension show the icon, its menu and clicks; GNOME without one shows none; a drawn icon is drawn |
Expand Down
Loading
Loading