This takes a few steps to reproduce, but seems to occur reliably. A few parts are needed to provoke the issue:
- Apple Silicon Macbook with latest Ventura (13.5.2) (maybe other systems are affected, but this is what I'm using)
- External monitor
- Photo Mechanic Plus Version 6.0, build 6784 (409cf99)
The issue:
1. Open an app, and put the window in fullscreen mode on the laptop screen (such that you could use a 3-finger swipe to get back to your desktop)
2. Open PMP on the external screen, and switch to the Catalog View, then the Collections tab
3. Right click on any collection
4. macos reveals the desktop on the laptop screen, as if I performed a 3-finger swipe to move away from the fullscreen app
5. The context menu in PMP opens for a split second and then closes
6. Right click again to open the context menu as usual
What I think is happening:
When displaying a custom context menu PMP causes macos to reveal my desktop on my laptop screen, even when PMP is running on a second monitor.
Notably, the issue does not occur when I right click on a contact sheet in PMP. To be specific, if I have a fullscreen app on my laptop screen, right clicking on a contact sheet item does not cause macos to reveal my desktop on the laptop screen.
One of the key differences between the two context menus is that for the Contact Sheet it's a native UI control, while for the Catalog Collections it's a custom rectangular box.
I'm pretty sure the custom context menu causes macos to think that a new window has been opened, so it reveals the desktop on my laptop screen not being aware that the new window is actually on my external monitor.
It might be simple to fix this just by changing the way the custom context menu is rendered.
However, my personal preference would be to instead render the Catalog Collections context menu as a native macos control, which would have the added benefit (to my tastes) of matching the UI of other macos apps and even aligning the styling with how other context menus in PMP are displayed.