Skip to content

Always perform layout after minimize start and end#1177

Merged
dalyIsaac merged 2 commits intomainfrom
always-layout-after-minimize-start
Nov 8, 2025
Merged

Always perform layout after minimize start and end#1177
dalyIsaac merged 2 commits intomainfrom
always-layout-after-minimize-start

Conversation

@dalyIsaac
Copy link
Copy Markdown
Owner

@dalyIsaac dalyIsaac commented Nov 8, 2025

Ensure that layout operations are triggered appropriately after minimizing a window, correcting the handling of layout execution in the minimize window transforms.

Closes #1175.

@dalyIsaac dalyIsaac added bug Something isn't working core Whim labels Nov 8, 2025
@dalyIsaac dalyIsaac requested a review from Copilot November 8, 2025 08:38
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request updates the minimize window transforms to trigger workspace layouts and improves type consistency.

  • Changed SkipDoLayout from true to false in both MinimizeWindowStartTransform and MinimizeWindowEndTransform to ensure layouts are triggered when windows are minimized/unminimized
  • Updated MinimizeWindowStartTransform to use the WorkspaceId type alias instead of Guid for consistency
  • Enhanced tests to verify layout behavior occurs correctly, including setting up monitors and using CustomAssert.Layout assertions

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/Whim/Store/WorkspaceSector/Transforms/MinimizeWindowStartTransform.cs Changed parameter type from Guid to WorkspaceId type alias and set SkipDoLayout to false to trigger layouts
src/Whim/Store/WorkspaceSector/Transforms/MinimizeWindowEndTransform.cs Set SkipDoLayout to false to trigger layouts when windows are unminimized
src/Whim.Tests/Store/WorkspaceSector/Transforms/MinimizeWindowStartTransformTests.cs Updated tests to verify layout operations occur by adding monitor setup, configuring mock engine layouts, and using CustomAssert.Layout
src/Whim.Tests/Store/WorkspaceSector/Transforms/MinimizeWindowEndTransformTests.cs Updated tests to verify layout behavior - one test confirms no layout when workspace unchanged, another confirms layout when workspace changes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…EndTransformTests.cs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Isaac Daly <isaac.daly@outlook.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.09%. Comparing base (1a854c8) to head (7e10eac).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1177   +/-   ##
=======================================
  Coverage   80.09%   80.09%           
=======================================
  Files         278      278           
  Lines       12718    12718           
  Branches     1469     1469           
=======================================
  Hits        10187    10187           
  Misses       2361     2361           
  Partials      170      170           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dalyIsaac dalyIsaac marked this pull request as ready for review November 8, 2025 09:51
@dalyIsaac dalyIsaac merged commit 801d736 into main Nov 8, 2025
9 checks passed
@dalyIsaac dalyIsaac deleted the always-layout-after-minimize-start branch November 8, 2025 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core Whim

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slice Layout // "Repaint" windows when a window is minimized

2 participants