obsproject / obs-studio

OBS Studio - Free and open source software for live streaming and screen recording
https://obsproject.com
GNU General Public License v2.0
58.69k stars 7.81k forks source link

obs does not remember maximized window layout #11001

Open goofyseeker311 opened 1 month ago

goofyseeker311 commented 1 month ago

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.2.0

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/OQehXiS6BcqBB6Bs

OBS Studio Crash Log URL

No response

Expected Behavior

when by accident or by choice the obs window becomes not maximized or resized, the layout should stay the same, when re-maximizing.

Current Behavior

when by some reason the window size becomes not maximized, then clicked to maximize windows again, obs does not remember what the layout was.

Steps to Reproduce

  1. maximize obs window
  2. do any non-standard layout change
  3. non-maximize obs window
  4. re-maximize obs window
  5. observe layout not being preserved

Anything else we should know?

this is an usability bug, as window maximization and normalization events happen often by accident and by choice. its very annoying to put the docks back in their place. yes window sizing by accident or by some other reason happens more often than you think.

RytoEX commented 1 month ago

Please clarify what a "non-standard layout change" is and what you mean by "layout not being preserved". Please provide some more specific steps for Steps To Reproduce. I'm not seeing anything obvious when trying to perform the steps to reproduce on my machine.

goofyseeker311 commented 1 month ago

I mean obs resets all docks layout fine settings like width, while their general position stays the same, the aspect ratio and accurate layout gets reset.

Try normal resized window with different aspect ratio than 16:9.

Very specifically twitch description and chat docks width dies not return to the maximized window values but to original width values.

On Wed, Jul 17, 2024, 20:47 Ryan Foster @.***> wrote:

Please clarify what a "non-standard layout change" is and what you mean by "layout not being preserved". Please provide some more specific steps for Steps To Reproduce. I'm not seeing anything obvious when trying to perform the steps to reproduce on my machine.

— Reply to this email directly, view it on GitHub https://github.com/obsproject/obs-studio/issues/11001#issuecomment-2233867114, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEX7K7RWLIKQDTRLZXEOJSDZM2UZZAVCNFSM6AAAAABLAYB3COVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZTHA3DOMJRGQ . You are receiving this because you authored the thread.Message ID: @.***>

Fenrirthviti commented 1 month ago

Please provide exact step-by-step directions to reproduce this, or a video clip/screenshots of the issue.

goofyseeker311 commented 1 month ago

step image 1: obs desired fully customized setup layout on maximized window: obsfullscreen1

step image 2: obs window normalized (non-maximized): obsfullscreen2

step image 3: obs non-desired window re-maximized: obsfullscreen3

images 1 and 3 are clearly different, and image 3 does not retain the dock dimensions desired in maximized window. I mean there should be different save data for the layouts for all used window sizes and maximized window.

goofyseeker311 commented 1 month ago

when you close obs and re-start the obs, it does not remember the exact last layout in similar way.

RytoEX commented 1 month ago

I don't think there's anything we can reasonably do about this here. Qt manages the window geometry for basic actions such as maximizing and unmaximizing a window. The window elements will shift around to accommodate minimum sizes of elements when the window size itself changes.

Pinging @Warchamp7 in case I've missed something.

goofyseeker311 commented 1 month ago

now it seems to be partially fixed. restarting using a maximized window now remembers the exact dock sizes. it does not remember multiple window size dock sizes, as normalizing the maximized window and re-maximizing it still resets the original maximized window dock sizes.

Eyion commented 3 weeks ago

I have the following problems when using it:

  1. When selecting the window acquisition mode, using the minimized recording window will result in no picture, but I hope that OBS can still record effectively using the minimized recording window, which is beneficial for me to do other work.
  2. When selecting the window acquisition mode, when using the non-maximized recording window, the recording result is also a non-maximized window (usually the picture only appears in the upper left corner of the player), but I hope that even if the non-maximized window is used for recording, it will still cover the player completely when playing. image
goofyseeker311 commented 2 weeks ago

also there is sometimes a problem with the old docks (twitch) that twitch chat fails to load the dock completely. it only shows a grey x on the corner and otherwise the window is white. maybe same issue as the size not being restored for old docks.