Repository navigation
gui_plan re-ground on miss, GTK 4 and Windows frame bounds, macOS daemon killed before bind - #537
Merged
Merged
Conversation
…nds again when its window moved The move check ran only after the point passed its hit test, so a window that moved past the point during grounding failed that test and the step stopped with "no element matches" without trying the window where it is now. A miss now takes the same read within the existing one re-ground; a window that moves again or closes still stops with the move text.
…tents GTK 4 answers every AT-SPI screen point and extent with the origin, so its windows had no bounds and gui_plan's move check before a click at a point found in a shot skipped them. The window list now gives such a window the rectangle of the one managed X client of its process and title, grown by _NET_FRAME_EXTENTS as GTK 3 computes its AT-SPI extents, and none when two frames or two clients share the process and title.
… its window by the frame cua-driver captures On Windows the plan's background click with a button or count stopped, or under auto fronted the window, because desk windows gave GetWindowRect bounds, whose invisible resize border put the window-pixel point off the driver's capture. desk windows now gives the DWM extended frame bounds, which cua-driver lists and captures, so the macOS window-pixel path serves Windows too. A click with modifiers keeps the old stop or fronting: cua-driver refuses background modifier clicks on Windows. Linux is unchanged: background gui_plan is refused there, and the driver's background route for such clicks needs /dev/uinput and drops modifiers on GTK.
…call at once Shuttle.app starts the daemon through LaunchServices, so the client is not its parent and could not see a SIGKILL before bind; each call waited out the 10 s start wait. The daemon writes its pid beside its endpoint as it starts, the client removes that file before open and checks the pid it reads with kill(pid, 0) on each poll.
…s bounds just before it, and a Windows middle click needs the foreground
…ble click to the foreground, since cua-driver sends nothing before it
… the shadow GTK keeps inside its X window
…s into the window
… not gui_plan, whose hit test still refuses the window
…a covered point to the foreground, since it sends nothing before it
…r no longer lists says so, and one that cannot reach its window off Windows names no platform it does not reach
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.
Follow-ups after #535, cut fresh on main (replaces #536, whose base was #535's branch).
gui_plan: a grounded point whose hit check fails reads the window list and grounds once more when its window moved; a stale list stops the step._NET_FRAME_EXTENTSand shrunk by_GTK_FRAME_EXTENTS, matched one to one by pid and title.Review: two independent reads (correctness, platform contract), a third review to convergence, and the four cleanup lenses. Gates green on macOS and in a Linux arm64 container.
Hardware
The old arm is the previous build with the same cua-driver 0.69.1 (for the covered-point rows, this PR before its last two commits). Each cell ran both arms in interleaved blocks (old, new, new, old).
desk waiton a GTK 4 window movechanged: trueafter about 1 sdesk windowsbounds, four windows at 96 DPIgui_planright click, plain and after a window movegui_planclick with shift or the middle buttongui_plandouble click on a Win32 buttonautoinput: right, double and middle click, WinUI 3 windowautoinput: double and right click fromgui_planand adesk clickdouble click, at a covered point in a WPF window and in a window of Chromium's classbackgroundinputKnown issues, unchanged by this PR:
WM_ACTIVATEandWM_SETFOCUSwithin 1 ms). The foreground window does not change. A backgrounddesk clickdouble click did this before this PR. A backgroundgui_plandouble click, new here, does it too.desk clickwith the middle button reaches a Win32 button as UI Automation Invoke, its left-click action.Not covered on hardware: on macOS a window move within one
gui_planstep; on Windows a move inside the click step, record and replay, 150% DPI, and a real Chromium or Electron renderer, Tk or GTK window at a covered point.