[MAC OS] Starting RetroArch Windowed, Window is partially offscreen
Description
Using RA 1.9.13 on Mac OS Monterey 12.0.1. Selecting 'Windowed' mode and a Window Scale of 3x (or larger) causes the window to start partially offscreen (bottom half of the window).
Expected behavior
RetroArch adapts the window position so it's not offscreen
Actual behavior
RetroArch does not adapt the window position so it's offscreen
Steps to reproduce the bug
- Select Windowed Mode, Scale 3x or larger
- Save Config
- Restart RetroArch, note that the window is offscreen. Happens on every restart.

Bisect Results
I think it always happened?
Version/Commit
You can find this information under Information/System Information
- RetroArch: 1.9.13
Environment information
- OS: Mac OS 12.0.1
- Compiler: Buildbot
I can also confirm on 1.13.0 - the window always launches off-screen or actually just always reverts to same position if it's small enough to fit.
I can confirm this is still happening on 1.15.0
Separate but seemingly related issue. I was running retroarch on a separate monitor from my laptop. However, when I reopened it after disconnecting the monitor, it still was "positioned" where the monitor used to be. Because of this, I can't reposition/resize the window.
I am still seeing this issue in macOS 14.4.1 on a 2021 16" MacBook with an M1 Pro running Retroarch 1.19.0.
I'm also using an external monitor. Like the OP Retroarch is in windowed mode and opens with the bottom of the Retroarch window below the bottom edge of the display. No changes to settings in the app or the OS have corrected this issue.
@MasterRee May you give some log ? Thank you.
@gouchi Just remembered to reply to this. I have attached the log. I've upgraded to RA 1.19.1 since my earlier comment, but the behavior is the same. The display is an external 4k monitor. I see in the log that is failing to initialize the graphics driver for some reason. Also, I run RA in portable mode, in case that has an impact, but it doesn't from my testing.
There's also some wonkiness around window remember position too, every time you start a new game, it kind of moves down a few pixels every time, so it ends up below the screen if you open too many titles without moving the window hehe... 1.20 is affected on Mac OS.
Just replying with a partial workaround, and the area in the settings this issue occurs. The issue occurs if video_window_save_positions = "false" If you change this to video_window_save_positions = "true" then it will at least remember the starting position.
However, if you close the application and restart it, the window will still shift down. I found that if I made a window the size of my screen:
video_windowed_fullscreen = "true"
video_windowed_position_height = "847"
video_windowed_position_width = "1440"
video_windowed_position_x = "0"
video_windowed_position_y = "0"
Then closed Retroarch, and restarted it, the application would be shifted down. It appears the window is shifted down the exact width of the window bar, so I think the calculation doesn't take it into account in positioning.
Pretty sure this should be fixed with the latest commit. Thanks!
Fixed! Nice work @warmenhoven