Skip to content

Commit

Permalink
Do not trigger changes when trying to toggle float on an unmanageable…
Browse files Browse the repository at this point in the history
… window (#1440)
  • Loading branch information
ianyh authored Mar 1, 2023
1 parent 519369b commit f1cea0e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Amethyst/Managers/WindowManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ extension WindowManager {
guard windows.windows(onScreen: screen).contains(focusedWindow) else {
let windowChange: Change<Window> = .add(window: focusedWindow)
add(window: focusedWindow)
guard windows.window(withID: focusedWindow.id()) != nil else {
return
}
windows.setFloating(false, forWindow: focusedWindow)
markScreen(screen, forReflowWithChange: windowChange)
return
Expand Down

0 comments on commit f1cea0e

Please sign in to comment.