You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when using SwitchHosts on macOS with multiple monitors, pop-up windows (like adding or editing a host) always appear on the primary display. Even if I click the tray menu on the secondary monitor, the pop-up still opens on the primary monitor.
Expected Behavior
I expect the pop-up window to appear on the same screen where I click the tray/menu icon, instead of always defaulting to the primary display. This would improve workflow in multi-monitor setups.
Steps to Reproduce
Connect a secondary display to a Mac.
Open SwitchHosts and ensure the app is running.
Click the SwitchHosts tray icon on the secondary monitor.
Observe that the pop-up opens on the primary monitor.
Additional Information
macOS version: macOS 15.5
SwitchHosts version: 4.2.0
Electron apps often use screen.getCursorScreenPoint() or screen.getDisplayNearestPoint() to position pop-ups. Implementing similar logic could fix this issue.