Repository navigation
merge: sync upstream main (91da94ad, v0.6.9) into fork - #63
Merged
Merged
Conversation
A retained picture's tiles were write-only: an application that has to know what one point of the picture shows, such as a client drawing a remote pointer whose pixels are the inverse of what is under it, would have to keep a second copy of the whole picture. The read is O(1) and allocates nothing. Motty's workbench uses it for the remote pointer it draws itself.
A canvas rounds an image's bounds to logical pixels, which resamples a picture whose pixels are the screen's at a fractional display scale: a 32-pixel cursor at 125% became 26 logical pixels instead of 25.6, and its pixels were filtered into 32.5 device ones. Surface.DrawPixels already paints its tiles this way for the retained pictures; a caller that owns the pixels, and has to draw them over a picture at their own size, had no way to ask for the same. Motty's workbench uses it for the remote pointer it paints itself.
clipfiles PATH... replaces the private clipboard's files the way a file manager's copy does, names as text included; clipfiles reads them back and clear empties them. It is what an end-to-end script needs to drive a paste with files on the clipboard, which the application layer owns: the assistant in Motty asks ClipboardFiles before it inserts pasted text (Motty t8y2/motty#1624).
This was referenced Nov 26, 2026
xiaoyumuxi
added a commit
to 1lck/Lithe-IDEA
that referenced
this pull request
Nov 26, 2026
* fix(desktop): 同步 Viva 上游 91da94ad(v0.6.9),固定 fork 7696355e fork Lithe-IDEA/Lithe-viva#63 用 merge commit 把上游 vivaui/viva main 91da94ad(12 个提交,含 v0.6.9 和 vivaui/viva#458 的 ColorPickerLabels.InvalidColor)合进 fork main 7696355e。replace 升到 v0.6.10-0.20261126074811-7696355e44b5,require 升到上游 v0.6.10-0.20261126065824-91da94ad9452。 Refs #1821 * docs(matrix): 记录 Viva 同步带来的 Windows 剪贴板线程修复 上游 a3ad0481 把 Windows 剪贴板事务固定在同一个系统线程,终端复制粘贴 和剪贴板图片粘贴都经过它;Lithe 代码不变,验证状态保持 pending。
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.
改了什么
把上游
upstream/main(91da94ad:feat(components): draw clickable ellipsis badge on folded lines,共 12 个上游提交,含v0.6.9)merge 进sync/upstream-91da94ad(基于 forkmain448b0553),保留 merge 历史(git merge-base --is-ancestor upstream/main HEAD通过)。这次 merge 没有冲突。带进来的上游提交:
4ac15c8bgfx:读取保留表面的单个像素7b0ad16e、a8125f2a1e4d4112gfx:按设备像素绘制调用方给的位图ae09ce0ea3ad0481b5876fcbColorPickerLabels.InvalidColor)f7ca3fc0e1487a1a23caf6cb99f24a3c91da94ad为什么
Lithe-IDEA 固定这个 fork。上游有 12 个提交 fork 还没有;1lck/Lithe-IDEA#2420 需要
ColorPickerLabels.InvalidColor,它已经通过 vivaui#458(b5876fcb)进了上游。怎么验证的
在
95b56119上(macOS arm64):gofmt -l为空go vet ./...;go vet -tags dev ./...只报被忽略的本地残留文件build/pr349_wheel_bench_test.go(build/在.gitignore里,不属于仓库)GOOS=windows GOARCH=amd64 go build ./...、GOOS=windows GOARCH=arm64 go build ./...、GOOS=linux GOARCH=amd64 go build ./...go test ./...:除下面几项外全部通过。cmd/viva:dmg/签名用例和本机 macOS 27 SDK 的部署目标不符(built for macOS 13.0 but [mac] min_system says 12.0),以前就有。ui/inputnumber、internal/componentdemo、internal/gallery:go1.27.4 下 input-number 热绘制分配 1 次。在原样的upstream/main上用 go1.27.4 同样失败;用GOTOOLCHAIN=go1.26.0(go.mod版本,上游 CI 用的)三个包都通过。build:同上,被忽略的本地残留文件。go test -tags dev ./base ./ui/... ./gfx ./components:只有ui/breadcrumbTestDisabledPlaceTakesNoPress(Key 1 was given to a Text)和上面的 input-number 分配失败,在原样的upstream/main上一模一样。git merge-base --is-ancestor upstream/main HEAD边界
纯上游同步,合进
Lithe-IDEA/Lithe-viva的main;请用 Create a merge commit 合入(不要 squash),保留和上游的共同历史。合入后 fork 仍未进上游的补丁:#61(上游 vivaui#454,评审中)和更早的 fork 独有补丁。fork #60 的改动和上游
b5876fcb逐行相同,这次同步后会以“已被上游取代”关闭。成本
除上游改动外没有额外成本。