win32: remove SC_RESTORE handling#16127
Conversation
|
@na-na-hi do you know where this would be needed? I couldn't reproduce on my end. Maybe it was FSE mode that is no longer with us. |
|
Download the artifacts for this pull request: |
After a maximized window is put in fullscreen, when you press win+down, it exits fullscreen in a maximized state. |
I see, but what is expected behavior in this case? Shouldn't it exit fullscreen? Same as win+down goes from maximized to windowed first. |
It does. As I already said, currently win+down in fullscreen exits fullscreen if |
But if it is not maximized it minimize instead. Is this expected to you? I found dozen other bugs when testing this again, so we can postpone this discussion. I only wanted to know if this is expected that |
win+down on a non-maximized window normally minimizes it. Technically I don't think there is any expected behavior in this case. As long as it does not leave the window in a buggy state it should be fine. |
|
@na-na-hi: Could you help testing this one? I had it long in the backlog. Let me know of any undesirable behavior, maybe we will manage to get this in. |
d857d7a to
32dae59
Compare
|
The latest version still has this issue: #16127 (comment) |
Should be fine now, could you try again? |
That issue is fixed but there is a new one: maximize, fullscreen, then print the value of |
Updated. One thing I really wanted to have is to keep Hopefully, this doesn't cause domino effect in some other parts. But when it really matters, I tried to use |
|
Will merge if there are no more comments. |
|
Setting Setting |
Fixed.
Would you prefer to contain whole window in working area? Or only top-left corner? What if user moves 90% of window outside of screen? Should we on resize bring it fully in view? |
ac6d090 to
86c0744
Compare
I've added explicit size constrain also for geometry. Let me know what do you think. Previously it was constrained by Windows in this case. |
|
@na-na-hi: have you had a chance to retest this? |
Since the geometry is constrained, I think it should be contained to the working area if Currently if I increase |
This is controlled with
Windows itself limits window size to display size. This is not taking into account taskbar (workspace area) and have other issues, so we limit size correctly ourselves. This was also done previously, just in arguably more buggy way.
I will check that, but basically what happens is Windows always moves window so the y >= 0. But as with everything, when set directly the x/y it will not complain. I will try to make it better, but in some cases I'm not sure how it actually should behave, because both outcomes seems ok, just different. |
Options may be at different state when caller is using it's own cached copy. This makes opts consistent in usage.
Made it consistent in both case. Please test. I think it works mostly ok now. I have some ideas like adding option to prevent window going out of the working space, but will do it in separate PR, as it is new feature. |
Will be useful to limit the size directly based on platform requirement.
We don't support other ways of fullscreening. Fixes: mpv-player#16119
It doesn't seem to be neeeded anymore.
Fixes lots of issues with current window resizing and window style modifications.
No description provided.