Toggling between monitors does not work for VLC
On multiple monitors, repeating the same hotkey moves the window to the other monitor. But for VLC, the window just stays on the same monitor and adjusts to an incorrect size.
It seems like it always moves it to the main display.
Thanks for reporting. Can you provide a log for when this happens? Hold the option key and select View Logging in the menu bar menu.
If you execute the next/previous display commands on VLC, does it correctly respond to those?
When I have VLC on my main display and press the hotkey twice to put it into upper-right corner, it never moves it to the secondary display and this is the log:
2022-03-09T18:40:31-08:00: AX sizing proposed: (1720.0, 720.0), result: (1067.0, 666.0)
2022-03-09T18:40:31-08:00: AX position proposed: (839.0, -1440.0), result: (839.0, 38.0)
2022-03-09T18:40:31-08:00: AX sizing proposed: (1720.0, 720.0), result: (1067.0, 666.0)
2022-03-09T18:40:31-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:40:31-08:00: AX position proposed: (839.0, -666.0), result: (839.0, 38.0)
2022-03-09T18:40:31-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:40:31-08:00: topRight | display: (-881.0, 982.0, 3440.0, 1440.0), calculatedRect: (839.0, -1440.0, 1720.0, 720.0), resultRect: (839.0, 38.0, 1067.0, 666.0), srcScreen: DELL U3417W, destScreen: DELL U3417W, resultScreen: Built-in Retina Display
2022-03-09T18:40:33-08:00: AX sizing proposed: (1720.0, 720.0), result: (1067.0, 666.0)
2022-03-09T18:40:33-08:00: AX position proposed: (839.0, -1440.0), result: (839.0, 38.0)
2022-03-09T18:40:33-08:00: AX sizing proposed: (1720.0, 720.0), result: (1067.0, 666.0)
2022-03-09T18:40:33-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:40:33-08:00: AX position proposed: (839.0, -666.0), result: (839.0, 38.0)
2022-03-09T18:40:33-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:40:33-08:00: topRight | display: (-881.0, 982.0, 3440.0, 1440.0), calculatedRect: (839.0, -1440.0, 1720.0, 720.0), resultRect: (839.0, 38.0, 1067.0, 666.0), srcScreen: DELL U3417W, destScreen: DELL U3417W, resultScreen: Built-in Retina Display
And when I do the "next display" command with VLC, the logging prints out as if it did something, but the window never moves (in this case, it remained on my laptop's retina display). This is what I see in the logs when I issue the "prev" and then "next" display.
2022-03-09T18:45:13-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:13-08:00: AX position proposed: (306.0, -1053.0), result: (306.0, 38.0)
2022-03-09T18:45:13-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:13-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:13-08:00: AX position proposed: (306.0, -666.0), result: (306.0, 38.0)
2022-03-09T18:45:13-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:13-08:00: previousDisplay | display: (-881.0, 982.0, 3440.0, 1440.0), calculatedRect: (306.0, -1053.0, 1067.0, 666.0), resultRect: (306.0, 38.0, 1067.0, 666.0), srcScreen: Built-in Retina Display, destScreen: DELL U3417W, resultScreen: Built-in Retina Display
2022-03-09T18:45:19-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:19-08:00: AX position proposed: (306.0, -1053.0), result: (306.0, 38.0)
2022-03-09T18:45:19-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:19-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:19-08:00: AX position proposed: (306.0, -666.0), result: (306.0, 38.0)
2022-03-09T18:45:19-08:00: AX sizing proposed: (1067.0, 666.0), result: (1067.0, 666.0)
2022-03-09T18:45:19-08:00: nextDisplay | display: (-881.0, 982.0, 3440.0, 1440.0), calculatedRect: (306.0, -1053.0, 1067.0, 666.0), resultRect: (306.0, 38.0, 1067.0, 666.0), srcScreen: Built-in Retina Display, destScreen: DELL U3417W, resultScreen: Built-in Retina Display
Thanks! I'll see what I can do to reproduce this and think through if there's a workaround, but this looks like it will boil down to VLC just not doing what it's told. The weird thing is that this has never been reported on Rectangle either, and I would have expected it to be reported there since VLC is pretty widely used. If you restart VLC, do you see any difference?
Yeah, I was surprised as well that this wasn't reported yet. I've tried restarting VLC, restarting OS, etc but nothing fixes it. I haven't seen this issue on any of the other apps I use. I'm on the latest version of macOS Monterey 12.2.1 (don't know if this occurred in previous versions).
Also it looks like it's affected by the monitor arrangement (in the "Display" settings). In my usual arrangement with my secondary monitor above my primary (laptop) screen, it never toggles over to the secondary monitor. However, if I set the secondary monitor to the left/right of my laptop screen, then it will swap between the screens, but it will not quite place it in the correct position.