Repository navigation
fix(standard): name the process and machine on the computer kit's window - #322
Open
pierreleca wants to merge 1 commit into
Open
pierreleca wants to merge 1 commit into
pierreleca wants to merge 1 commit into
Conversation
A program that finds the window holding the keyboard by the window manager's active window and that window's _NET_WM_PID finds no owner for the kit's fixture window. Tk sets neither _NET_WM_PID nor WM_CLIENT_MACHINE unless it is given the machine's name. In the type check, such a program refuses to type at the desktop's level. The fixture now gives Tk the desktop's host name. Tk then writes both properties on the window as it maps, as an application's window has them. The checks, their pass rules and the kit's version are unchanged. The desktop image's tag changes, since the fixture is part of what it hashes.
This branch has not been deployed
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.
Closes #321
What
The kit's fixture now gives Tk the desktop's host name (
wm client). Tk then writesWM_CLIENT_MACHINEand_NET_WM_PIDon the fixture's window as it maps, as an application's window has them. A driver that takes the keyboard's window from the active window's_NET_WM_PIDnow finds the fixture's process and types into its window. The checks, their pass rules and the kit's version are unchanged. The desktop image's tag changes, since it hashes the fixture.Touches
the standard (the kit's fixture and its tests) · docs and site (the port's page)
Verified
app/tests/test_computer_kit.py, on a real desktop (docker tier): fails onmain, passes here.main.prove agent-computer-v1, each branch on the desktop it builds: units unique, leak 9/9, null control 0/9, reference 9/9 on both. A script that clicks blind failslateon both.typecheck: refused onmain, passed here.main, plus the new test (backend 2,748 against 2,747; routes 612 each).git diff --checkis clean.Risk
The window gains two properties that no check reads. A revert undoes it; the next unit builds the image again.