Skip to content

Commit

Permalink
More descriptive comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Jul 14, 2024
1 parent de10cd3 commit 98e2a8b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Ice/MenuBar/MenuBarManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,10 @@ final class MenuBarManager: ObservableObject {
return nil
}

// workaround to prevent the clipping of menu items on secondary screens when the
// main screen has a notch, and the application menu extends past it...
//
// this isn't ideal, and arguably introduces a visual bug, but its a "better" bug
// than what it aims to fix
// the Accessibility API returns the menu bar for the active screen, regardless of
// the display origin used; this workaround prevents an incorrect frame from being
// returned for inactive displays in multi-display setups where one display has a
// notch
if
let mainScreen = NSScreen.main,
let thisScreen = NSScreen.screens.first(where: { $0.displayID == displayID }),
Expand Down

0 comments on commit 98e2a8b

Please sign in to comment.