Repository navigation
fix(platform): make overlays, the layer host and the virtual desktop follow the window host, and fix Windows, Linux and tray drift - #1222
Merged
Merged
Conversation
… collisions and missing-portal watcher
This was referenced Nov 23, 2026
Closed
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.
Rune runs one runtime under several hosts: the window host, overlays, the Apple layer host, the headless driver, the virtual desktop and the web host. An audit found places where one host did something the others do differently by accident, and a few platform bugs beside them. Each fix has a test, and each user-visible one has an entry in
changelog/unreleased/.Hosts
Cx::zoominput::host_events, shared with the window host--desktoprun ignores zoom and scripted resizes, and keeps keys held after its window hidestooling::script_input, shared with the headless driverembed::LayerHostadvances animations on a frame with no drawable, never reports presentation, skipsEl::surfaceand blend changes, and panics on a refused surface configurationEvent translation before, by host (✓ handled, – dropped):
All three are ✓ after. The web host's translation has the same kind of gaps (zoom, wheel phase, key repeat) and is not changed here.
Windows
Slotrecords the configure generation and the waitable it waits on, and frees itself when either changesRcheld acrossDefSubclassProcand released onWM_NCDESTROYdcomp.dllloaded by bare name through the default search orderLOAD_LIBRARY_SEARCH_SYSTEM32, as every other system library&and tabs into mnemonics and columns; a long tooltip is cut inside a surrogate pairLinux
KeyPolicyplatform/layer_shell_machine.rs, tested off Linuxplatform/portal.rs: one worker, monotonic tokens, subscribe before call, cancellation_into a mnemonicElsewhere
NSCursorhad two wildcard arms. It is now an exhaustive match, so a newCursorvariant cannot fall through to the arrow unnoticed. No cursor changes.en-AUanden_USfind the dictionary for their language; on web, a deselected language stops being checked.Verification
Compiled and tested on macOS (297 tests in the touched modules), and checked for iOS, Linux with and without
dbusand withnative-file-dialog, and wasm. The Linux portal and layer-shell paths are compiled and unit-tested through their extracted state machines, not run on a Linux desktop.