diff options
author | Dudemanguy <random342@airmail.cc> | 2021-08-07 18:07:09 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-08-07 18:36:41 -0500 |
commit | 84362e820e88dd7348b2fa35dd640288616c1fb5 (patch) | |
tree | dd4c4d18df723b83ea658aab096a59d349e43a6d /audio | |
parent | 25cfc815f564a233ead68c77ad14fae638ebd30a (diff) | |
download | mpv-84362e820e88dd7348b2fa35dd640288616c1fb5.tar.bz2 mpv-84362e820e88dd7348b2fa35dd640288616c1fb5.tar.xz |
wayland: correct window-scale behavior
The way the window-scale option is supposed to behave wasn't really ever
documented until 25cfc81. It turns out that different OS/WMs may do
slightly different things. For wayland, we need to fix two things.
First, only return the wl->window_size in GET_UNFS (aka don't return the
fullscreen size). For SET_UNFS, we need to change the behavior for the
maximized window case. If the window is maximized, first attempt to
unmaximize it and send the wayland event. If the compositor allows this
to happen, then go ahead and set the new dimensions and resize it. In
the case that the attempt to unmaximize is not successful, then don't
attempt the resize and just save the window size dimensions for later to
be used when the user unmaximizes the window.
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions