RetroArch icon indicating copy to clipboard operation
RetroArch copied to clipboard

[MAC OS] Starting RetroArch Windowed, Window is partially offscreen

Open zach-morris opened this issue 4 years ago • 6 comments

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

  1. Select Windowed Mode, Scale 3x or larger
  2. Save Config
  3. Restart RetroArch, note that the window is offscreen. Happens on every restart. Screen Shot 2021-11-19 at 6 50 40 PM

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

zach-morris avatar Nov 20 '21 02:11 zach-morris

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.

personaone avatar Nov 29 '22 16:11 personaone

I can confirm this is still happening on 1.15.0

magnuspraeda avatar Aug 24 '23 00:08 magnuspraeda

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.

TheReformedAlloy avatar Sep 02 '23 03:09 TheReformedAlloy

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 avatar Aug 06 '24 00:08 MasterRee

@MasterRee May you give some log ? Thank you.

gouchi avatar Aug 06 '24 07:08 gouchi

@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.

retroarch.log

MasterRee avatar Dec 21 '24 22:12 MasterRee

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.

personaone avatar Mar 01 '25 10:03 personaone

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.

Image

zach-morris avatar Oct 12 '25 18:10 zach-morris

Pretty sure this should be fixed with the latest commit. Thanks!

warmenhoven avatar Oct 13 '25 15:10 warmenhoven

@zach-morris Do you confirm it is fixed in latest nigthly ?

Thank you.

gouchi avatar Oct 23 '25 07:10 gouchi

Fixed! Nice work @warmenhoven

zach-morris avatar Oct 23 '25 14:10 zach-morris