Incorrect menu bar context on macOS when changing the focus to another application
To reproduce this problem, use the mouse to change the focus to another application window while NoMachine window is active, then click again the NoMachine session window: the desktop menu bar context stays on the previous application instead of changing to NoMachine.
As a workaround, change the focus with Command-Tab, the NoMachine context will then appear correctly in the menu bar.
The problem started occurring on macOS 14.
