test(docks): assert that a dock receives the clicks at any edge #59
Merged
BlackAngelTV
merged 1 commits from 2026-12-03 11:02:14 +01:00
fix/dock-click-edge into main
No Reviewers
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: FWS/FWS-Kitty#59
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The mouse handling of docked windows had no test: the existing dock tests only checked the regions the layout carves, never which window the clicks are routed to, so a click lost on a right dock could not be caught by the suite.
A hit test helper now places the two windows of a tab with their own areas and returns the window
mouse_region()picks, for both orders. A right dock and a left dock must both resolve to the dock, and the layout tests now pin the position of a right dock, which previously only had its width and its containment checked.Running this against the current tree passes: the right dock is carved against the right edge (measured on a live instance: 40% of a 210 column tab at columns 127 to 210, geometry
1142..1898with the terminal at0..1134), and the hit test then finds it. The mirrored clicks of the report therefore do not reproduce here, so this keeps #44 open for a retest on 0.1.16 and pins the behaviour meanwhile.