libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.06k stars 1.81k forks source link

RA Windows does not remember window position and size. #10835

Open Passingby1 opened 4 years ago

Passingby1 commented 4 years ago

First and foremost consider this:

Description

Even when you check the "remember window position and size" under settings>video>windowed mode, it does not work, RA never remembers the position or size.

Expected behavior

RA properly remembering window size (ie maximized) or size (it changes when loading content, closing content, and the size depends on the core used.

Actual behavior

The only way to get around this in a partial way is to set a defined window width and height, then RA remembers the window size, just not the position, never the position.

Steps to reproduce the bug

  1. First step--> make a clean RA installation or delete retroarch.cfg
  2. Second step-->load content and close content while observing how the window resizes itself all the time
  3. Third step-->Set a defined window width and height under settings>video>windowed mode and then RA remembers the window size, but it won't remember the position.

Bisect Results

[Try to bisect and tell us when this started happening]

This has been happening for as long as I can remember, and I've been using RA prior to the 1.6 series.

Version/Commit

You can find this information under Information/System Information

Environment information

Windows 10 Pro 1903 I7 4790k GTX 1080 ti with 441.87 drivers. 2k@120hz/4k@60hz screen.

bslenul commented 4 years ago

OK, so that's a super weird one, about size anyway, position seems to work fine for me.

So, if I resize the window from the right side, bottom side and bottom-right corner, the screen size doesn't stick, no issue with the other sides and corners.

Here's a video where I mess with it: https://streamable.com/pouhzw At 0:30 I'm using the bottom-right corner to resize, 0:45 the bottom and right sides. You can see the size not being remembered in these cases.

edit: Forget to show the width/height values after resizing in the video, derp... But the values change in real-time when resizing with everything but right/bottom sides and bottom-right corner.

edit2: Here we go: https://streamable.com/q8fk2p

On my Linux VM however, no matter how I resize it doesn't stick, the only way is to change the width/height values in Settings > Video > Windowed Mode. And position doesn't stick either.

bslenul commented 4 years ago

Btw, in these videos I'm closing RetroArch with Escape key, if I use the "X" instead, the size is remembered correctly in every cases 🤔

Other oddity: if I restore width/height using Spacebar, then close RA with the "X", size doesn't stick, if I use Escape however it does: https://streamable.com/00pkro

Zephyr-Battiassi commented 4 years ago

For me it works fine most of the time, until the next time retroarch crashes. After the crash, retorach will launch with the default window size and position, so I will have to maximize it again and save the configuration.

I got fed up and set the windows shortcut to "maximized", so it's always maximized. Other option is to set up retroarch to launch in full screen (I did that for my HTPC).

I hope it helps.

devdzt commented 2 years ago

I got fed up and set the windows shortcut to "maximized", so it's always maximized.

i read this and got excited thinking maybe it would just stay maximized then dont have to worry about position or size but nope, doesnt work for me...

will not start maximized, will not remember position, it might be remembering size but hard to tell since it doesnt remember position so the window is always half way off the screen when retroarch starts

whats even worse is even after you manually maximize the window, it undos that and the window seems to warp to a random position when you load content