@@ -68,7 +68,7 @@ final class MacWindow: Window, CustomStringConvertible {
68
68
}
69
69
if !skipClosedWindowsCache { cacheClosedWindowIfNeeded ( window: self ) }
70
70
let parent = unbindFromParent ( ) . parent
71
- let deadWindowWorkspace = parent. workspace
71
+ let deadWindowWorkspace = parent. nodeWorkspace
72
72
for obs in axObservers {
73
73
AXObserverRemoveNotification ( obs. obs, obs. ax, obs. notif)
74
74
}
@@ -121,9 +121,9 @@ final class MacWindow: Window, CustomStringConvertible {
121
121
// `hideEmulation` calls
122
122
if !isHiddenInCorner {
123
123
guard let topLeftCorner = getTopLeftCorner ( ) else { return }
124
- guard let workspace else { return } // hiding only makes sense for workspace windows
124
+ guard let nodeWorkspace else { return } // hiding only makes sense for workspace windows
125
125
prevUnhiddenEmulationPositionRelativeToWorkspaceAssignedRect =
126
- topLeftCorner - workspace . workspaceMonitor. rect. topLeftCorner
126
+ topLeftCorner - nodeWorkspace . workspaceMonitor. rect. topLeftCorner
127
127
}
128
128
let p : CGPoint
129
129
switch corner {
@@ -144,13 +144,13 @@ final class MacWindow: Window, CustomStringConvertible {
144
144
145
145
func unhideFromCorner( ) {
146
146
guard let prevUnhiddenEmulationPositionRelativeToWorkspaceAssignedRect else { return }
147
- guard let workspace else { return } // hiding only makes sense for workspace windows
147
+ guard let nodeWorkspace else { return } // hiding only makes sense for workspace windows
148
148
149
149
switch getChildParentRelation ( child: self , parent: parent) {
150
150
// Just a small optimization to avoid unnecessary AX calls for non floating windows
151
151
// Tiling windows should be unhidden with layoutRecursive anyway
152
152
case . floatingWindow:
153
- _ = setTopLeftCorner ( workspace . workspaceMonitor. rect. topLeftCorner + prevUnhiddenEmulationPositionRelativeToWorkspaceAssignedRect)
153
+ _ = setTopLeftCorner ( nodeWorkspace . workspaceMonitor. rect. topLeftCorner + prevUnhiddenEmulationPositionRelativeToWorkspaceAssignedRect)
154
154
case . macosNativeFullscreenWindow, . macosNativeHiddenAppWindow, . macosNativeMinimizedWindow,
155
155
. macosPopupWindow, . tiling, . rootTilingContainer, . shimContainerRelation: break
156
156
}
@@ -360,7 +360,7 @@ extension WindowDetectedCallback {
360
360
if let regex = matcher. appNameRegexSubstring, !( window. app. name ?? " " ) . contains ( regex) {
361
361
return false
362
362
}
363
- if let workspace = matcher. workspace, workspace != window. workspace ? . name {
363
+ if let workspace = matcher. workspace, workspace != window. nodeWorkspace ? . name {
364
364
return false
365
365
}
366
366
return true
0 commit comments