(window: WaylandWindow)
| 3056 | private monitorSnapBaseRect(monitor: string): ManagedWindowRect | null { |
| 3057 | const usable = |
| 3058 | COMPOSITOR.layer.usableArea(monitor) ?? this.monitorFullRect(monitor); |
| 3059 | if (!usable) { |
| 3060 | return null; |
| 3061 | } |
| 3062 | return insetRect(usable, MAXIMIZED_WINDOW_PADDING); |
| 3063 | } |
| 3064 | |
| 3065 | /** Resolve the snap zone for a pointer near the physical screen edges. */ |
| 3066 | private floatingSnapZoneAt( |
| 3067 | monitor: string, |
| 3068 | px: number, |