diff options
author | Dudemanguy <random342@airmail.cc> | 2021-12-19 09:23:49 -0600 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-12-27 12:58:37 +0100 |
commit | f47a05544015da79a5ffde6fedfdfca25e1de96e (patch) | |
tree | bb89529694dbb6cfbcc5a3abdfb5f344c8bce550 /mp3lib/dct64_MMX.c | |
parent | 80c03b49bfbcc2567aeca39b7bba7c06d5bbb4dc (diff) | |
download | mpv-f47a05544015da79a5ffde6fedfdfca25e1de96e.tar.bz2 mpv-f47a05544015da79a5ffde6fedfdfca25e1de96e.tar.xz |
wayland: avoid doing unneccesary window resizes
Commits 04018c306196888861775b248a8596ae494f122b
cd7a7a1de8d8bffa05170befef25b251711c994a introduced behavior that
updated window geometry during wayland events (specifically surface and
output). This is good but they also are too aggressive with
automatically resizing. For example, if a window is manually resized by
the user and then dragged to a different monitor with different geometry
than the initial monitor, mpv will automatically resize itself to the
window's resolution. The initial thought behind this logic was for
autofit to automatically readjust itself on a new monitor, but doing
that breaks other common use cases. An attempt could be made to
distinguish between autofit and a manual resize but that introduces a
lot of complexity for an edge case. It's better to simply not change the
window geometry here. Internal values are recalculated and scaled of
course, but wl->window_size and wl->geometry should not change.
Diffstat (limited to 'mp3lib/dct64_MMX.c')
0 files changed, 0 insertions, 0 deletions