Skip to content

Improve on Split logic for single window#1843

Closed
mgabs wants to merge 7 commits intoianyh:developmentfrom
mgabs:development
Closed

Improve on Split logic for single window#1843
mgabs wants to merge 7 commits intoianyh:developmentfrom
mgabs:development

Conversation

@mgabs
Copy link

@mgabs mgabs commented Mar 5, 2026

Summary of Changes

  • Update CI/CD to run tests using Fastlane (Mohammed Metawea 12 minutes ago)
  • Fix window margin calculation and visibility issues (Mohammed Metawea 12 minutes ago)
  • Refactor window layout logic for performance and testability (Mohammed Metawea 3 hours ago)

mgabs added 4 commits March 5, 2026 14:46
- Injected window margin configuration into `FrameAssignment` and `Layout` classes to avoid singleton access in tight loops.
- Optimized "smart window margins" calculation in `ScreenManager` to use managed window count instead of expensive system calls.
- Refactored `ReflowOperation.perform(withWindow:)` to reduce code duplication.
- Added unit tests for `ReflowOperation` margin logic.

Made-with: Cursor
- Correctly inject window margin configuration into ResizeRules and FrameAssignment.
- Ensure ScreenManager calculates margins based on managed window count and user preference.
- Update all layouts to pass margin configuration to ResizeRules.
- Fix concurrency warning in ReflowOperation.
- Remove unused variable in BinarySpacePartitioningLayout.
- Update tests to reflect changes.

Made-with: Cursor
- Add 'test' lane to Fastlane to run tests without code signing.
- Add 'local_release' lane for optimized local builds.
- Update GitHub Actions workflow 'tests.yml' to use 'fastlane test'.
- Ignore fastlane test output.

Made-with: Cursor
  • `Amethyst.xcodeproj/project.pbxproj`:
      • Updated MARKETING_VERSION from 0.24.1 to 0.24.2.
      • Incremented CURRENT_PROJECT_VERSION from 125 to 126.
@mgabs
Copy link
Author

mgabs commented Mar 5, 2026

No AI was harmed in this project!
Sorry if I didn't follow the process, This was always a problem that is bugging me and I have been using amethyst for some time since I moved from Arch and I love it.
Hope you consider the PR

mgabs and others added 3 commits March 5, 2026 23:43
- Added a check for accessibility permissions in `applicationDidBecomeActive` to handle cases where permissions are granted after launch or not detected correctly on initial launch.
- Added `NSAccessibilityUsageDescription` to Info.plist to improve permission prompting on newer macOS versions.

Made-with: Cursor
@mgabs mgabs closed this Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant