Repository navigation
merge: reconnect upstream 82a3318 history after squashed #32 - #33
Merged
Merged
Conversation
A disabled control is skipped by hit testing, so a right click on one never reached the application. A toolbar button the user can hide or move still needs its context menu, and the application had to hit-test its own geometry to find it. Add HitOptions.SecondaryWhenDisabled: a disabled control that declares it becomes the target of a secondary press only. Primary presses, keys and activation still pass over it. The router resolves the hover for a secondary press with the new flag, so the press target and the application's PointerDown delivery both see the control. Plain PointerAt callers pass false and keep the old hit rules. Used by motty#940 for the SFTP toolbar and the dock tools.
The generated AGENTS.md is the only document tools/aieval sends, and the skill is what an external agent installs. Both were long undivided prose with copy-paste mistakes. - add a task index, an error-to-fix table and a headless check list to the generated guide, and split the duplicated sections - rewrite the skill as a task router with a verification loop - split the 9k-character declarative-layout paragraph (en and zh), add a tested table example, and install recipes.md with the skill - add go tests for symbols, links, quoted panics and eval-task coverage
EnsureClosed only moved the program image aside. Native files the program loads at runtime, such as conpty.dll, stayed locked and File failed on them: a GUI install showed "cannot open file for writing" and a silent install skipped the file without updating it. Apply the same delete-then-rename-aside treatment before each extra file, clean the moved copies on the next install, and mark locked extra files for reboot removal when uninstalling.
The default Linux build runs on X11, where SetTitle returned ErrUnsupported; only the opt-in GTK shell applied titles. The X11 window now applies them on its event loop, as SetSize does: SetTitle stores the latest title and posts a command, and the loop writes WM_NAME and _NET_WM_NAME. An empty title clears both. Titles are checked in app.Window.SetTitle before any backend sees them. A title with a NUL byte or invalid UTF-8 returns an error and changes nothing. Windows used to accept such a title and drop it silently, and Darwin truncated or emptied it, so the backends now agree. This follows vivaui#304, which landed as 68f1a05 and added SetTitle without the X11 path or the title checks. Tests cover the X11 command path with a fake xcb API, the headless windows listing with rejected titles and a closed window, and a Windows read-back through GetWindowTextW. The docs table gets a window title row.
An application menu runs its entry outside the window's event handlers, so the focus, clipboard and repaint a command returns were dropped: choosing Find from the menu bar opened the bar while the keyboard stayed in the terminal. MenuBarItem.OnSelect now returns the gfx.EventResult a key handler returns, and the runtime applies it to the window that last became active and wakes the window for the frame that shows it. The application keeps producing results; applying focus and scheduling the repaint stay in the runtime, so Motty's menu actions only return what their commands did. The companion motty commit uses this for Find, the command palette, the assistant, the host panel, the local terminal and tab switching.
A menu's key equivalent reached its entry directly, so a command that depends on the focused control ran the wrong branch: Edit > Copy in Motty's assistant panel copied the terminal selection and ignored a selection in an assistant answer, because the shortcut handler never saw Cmd+C. Offer a menu entry's chord to the window first, as AppKit offers a key to the focused content before the menu: a character chord to the shortcut handler, a named key to the key handler, both with the focused control as the target. OnSelect runs only when that handler declines, so pressing a shortcut and choosing its entry run one command. The routing stays in the application; the runtime only supplies the focused target and carries out what the handler returned.
Upstream now carries the fork's window title work (fork #1, #5 and #17 as 68f1a05, extended by 76aba78 with X11 titles and NUL/invalid UTF-8 rejection) and the Windows patch payload staging (fork c029d61 as 84a9897). Conflicts were resolved in upstream's favour: - app/title.go, app/title_test.go: upstream's version. - README.md, docs/conformance.md: upstream's text; the fork's SetTitle notes are dropped because upstream documents the same API. - cmd/viva/initfiles/AGENTS.md.txt: upstream's rewrite, keeping only the fork-only ScrollArea.Bars / PageConfig.BarStyle and Tooltip style notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Merge this PR with "Create a merge commit". Squash or rebase would make it a no-op and leave the history broken.
#32 was squash merged, so fork main
80a307ahas a single parent (6553826). Its files are right (identical to the sync merge2895b97), but upstream82a3318is no longer an ancestor of fork main, and2895b97is not on fork main.git log upstream/main..mainwill count upstream's commits as fork-only again, and the next sync would re-resolve the same conflicts. This is the609dd47/ #16 situation the maintenance note warns about.This branch is fork main
80a307awithgit merge --no-ff 2895b97on top (5d88982, parents80a307aand2895b97). No history is rewritten.Checks on
5d88982git diff 80a307a 5d88982: empty. No file changes.git merge-base --is-ancestor upstream/main 5d88982: true.git merge-base --is-ancestor 2895b97 5d88982: true.git log 5d88982..upstream/main: empty.The validation in #32 (gofmt, vet, Windows amd64/arm64 builds, Linux vet,
go test ./...) holds unchanged because the tree is the same.