-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maximize window button not working correctly #203
Comments
Yes that's a known issue (can't find where we discussed this before though). All uosc does when you click the button is This comment is the best explanation I could find as to what is happening: mpv-player/mpv#7887 (comment) |
I think I'll give the button some logic to work around this. It's not acceptable for that button to be this broken. |
There's another issue that Try this, although in the above scenario you need to click twice. |
Not sure about mpv's behavior when using
How about this idea?
|
This should be the best we can do in this situation. I personally couldn't find a state where it still does something bad. It's pretty much the logic described by @hooke007 above, but I added |
I think we need to make this behavior platform specific or turn the maximize button into effectively a fullscreen button, because it's horribly broken for me on kde plasma on wayland. I never use that button, so I never noticed before. Does anyone even maximize their player? I'm always either fullscreen or windowed, but changing it away from maximize to fullscreen in general might undermine the expectation of users... it would be really simple though. local function get_maximized_command()
return state.fullormaxed and 'set window-maximized no;set fullscreen no' or 'set fullscreen yes'
end |
There are valid use cases for maximized state. Like I sometimes use it when watching something on a secondary monitor but still want to see notifications in taskbar. I wouldn't mind making it platform specific, but as you noted, is it a platform issue, or a desktop environment issue? |
I'd assume the border thing is desktop environment specific, but it doesn't really matter, because only windows has that quirk with borderless windows. |
If the fullscreen is used, using the other button fullscreen button or using
cycle fullscreen
doesn't minimize the window.The text was updated successfully, but these errors were encountered: