Skip to content

Commit

Permalink
Another approach for ignoring Notification Center via window level in…
Browse files Browse the repository at this point in the history
… snapping by dragging
  • Loading branch information
rxhanson committed Sep 26, 2023
1 parent aa67f3d commit 5cc48ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Rectangle/AccessibilityElement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,8 @@ extension AccessibilityElement {

private static func getWindowInfo(_ location: CGPoint) -> WindowInfo? {
let infoAtLocation = WindowUtil.getWindowList().first(where: {windowInfo in
windowInfo.level < 1000
&& !["Dock", "WindowManager", "Notification Center"].contains(windowInfo.processName)
windowInfo.level < 23
&& !["Dock", "WindowManager"].contains(windowInfo.processName)
&& windowInfo.frame.contains(location)
})

Expand Down

0 comments on commit 5cc48ce

Please sign in to comment.