-
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
Change behavior of top bar "maximize" control #811
Comments
borderless maximize is buggy on windows. |
Yeah we have tons of issues with the maximize command in top bar, even on other systems. We even have a special handling function that determines what to do in different environments/scenarios so that it doesn't break stuff: local function get_maximized_command()
if state.platform == 'windows' then
return state.border
and (state.fullscreen and 'set fullscreen no;cycle window-maximized' or 'cycle window-maximized')
or 'set window-maximized no;cycle fullscreen'
end
return state.fullormaxed and 'set fullscreen no;set window-maximized no' or 'set window-maximized yes'
end And there are still issues (#795). I'm pretty much ready to swap the maximize button to just toggle fullscreen everywhere and remove fullscreen button from default controls list. |
For Windows suggested default configuration should be
and in uosc
to have all compositor features like limiting the window to work area and so on. |
Ah, this, yeah it is fixed in Windows 11. Couldn't fine a way to workaround this on Windows 10. Except obviously hiding all borders. Which actually might be better than this. EDIT: Does this build help https://github.com/mpv-player/mpv/actions/runs/7129695802?pr=12894 ? |
This is exactly what I was looking for, maximizing works properly with this config. |
With this all of the borders are gone completely, and maximizing produces a window that covers around 20px of the top of the taskbar. |
Expected, there is no easy way to workaround the top bar sizing issue on Windows 10, without removing While we could limit
I tested in VM briefly now, will be fixed by latest build in mpv-player/mpv#12894 (https://github.com/mpv-player/mpv/actions/runs/7148952167) |
So I don't personally care either way, asking just so that I know that there's no way for uosc to determine whether to draw our border or not depending on |
I will add Also I need to fix this if state.platform == 'windows' then
return state.border
and (state.fullscreen and 'set fullscreen no;cycle window-maximized' or 'cycle window-maximized')
or 'set window-maximized no;cycle fullscreen'
end because it shouldn't live in the lua script. And native OSC have the same issue already. Just need to find some time to mess with this again. |
how to |
Here is not mpvnet's issue tracker. Why not ask your questions there? |
The "maximize" button in the top bar controls does not maximize mpv, but fullscreens it instead.
In my opinion, it would be more useful if it acted like every other maximize/restore button on windows, especially given the fact that a fullscreen control element already exists in uosc.
The text was updated successfully, but these errors were encountered: