Skip to content

Commit ba86ba2

Browse files
committed
Add handler for window move
1 parent 8ca247a commit ba86ba2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Amethyst/Managers/WindowManager.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,11 @@ extension WindowManager: ApplicationObservationDelegate {
609609
// record window and wait for mouse up
610610
mouseStateKeeper.state = .moving(window: window)
611611
case let .doneDragging(lmbUpMoment):
612+
613+
if let screenManager = focusedScreenManager(), screenManager.currentLayout is FloatingGridLayout {
614+
screenManager.setNeedsReflow(withWindowChange: .layoutChange)
615+
}
616+
612617
mouseStateKeeper.state = .pointing // flip state first to prevent race condition
613618

614619
// if mouse button recently came up, assume window move is related

0 commit comments

Comments
 (0)