Commit f47a055
wayland: avoid doing unneccesary window resizes
Commits 04018c3
cd7a7a1 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.1 parent 80c03b4 commit f47a055
1 file changed
+0
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
657 | | - | |
658 | | - | |
659 | 656 | | |
660 | 657 | | |
661 | 658 | | |
| |||
716 | 713 | | |
717 | 714 | | |
718 | 715 | | |
719 | | - | |
720 | 716 | | |
721 | 717 | | |
722 | 718 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | 719 | | |
727 | 720 | | |
728 | 721 | | |
| |||
0 commit comments