mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[PR #1447] [MERGED] Window Manager Edge Case Tests #1405
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/LGUG2Z/komorebi/pull/1447
Author: @SaucePackets
Created: 5/16/2025
Status: ✅ Merged
Merged: 5/17/2025
Merged by: @LGUG2Z
Base:
master← Head:edge-case-tests📝 Commits (3)
b7368c7test(window_manager.rs): test swap workspace with nonexistent monitor58cdb00test(window_manager.rs): test switch focus to nonexistent monitor2686b00test(window_manager.rs): test swap container with non existent container📊 Changes
1 file changed (+190 additions, -17 deletions)
View changed files
📝
komorebi/src/window_manager.rs(+190 -17)📄 Description
Created tests to test switching focus to a nonexistent monitor, swapping a container with a nonexistent container, and swapping a workspace with a nonexistent monitor. PR also contains the bug fix @LGUG2Z fixed, where the container contents were deleted when attempting to swap a container with a nonexistent container. The fix ensures that both containers exist before removing the containers contents.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.