Skip to content

Commit

Permalink
Hide mouse cursor while rehiding temporarily shown items
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbaird committed Jan 14, 2025
1 parent a3f78d4 commit 51d1087
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Ice/MenuBar/MenuBarItems/MenuBarItemManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,12 @@ extension MenuBarItemManager {

let items = MenuBarItem.getMenuBarItems(onScreenOnly: false, activeSpaceOnly: true)

MouseCursor.hide()

defer {
MouseCursor.show()
}

while let context = tempShownItemContexts.popLast() {
guard let item = items.first(where: { $0.info == context.info }) else {
continue
Expand Down

0 comments on commit 51d1087

Please sign in to comment.