diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-13 00:03:46 -0400 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-03-17 14:59:26 +0000 |
commit | ea33d52a4a89d673b922e0f38d96f592ece57d98 (patch) | |
tree | 6adb2500c1701b3bce868a292f64256512341ff3 /ci | |
parent | 25ae54dd84ac6b1333aa1a78e526471b8e1d2778 (diff) | |
download | mpv-ea33d52a4a89d673b922e0f38d96f592ece57d98.tar.bz2 mpv-ea33d52a4a89d673b922e0f38d96f592ece57d98.tar.xz |
wayland_common: always use the current geometry for prepare_resize
In the xdg_toplevel_configure handler, in some cases the geometry is
not equal to the width and height in the event. This can happen
when runtime geometry change is requested (a new size is set),
or in the case of wl->state_change || width == 0 || height == 0
(the old size is used).
However, prepare_resize always uses the width and height in the event
and not the corrected geometry here. This causes
xdg_surface_set_window_geometry using the wrong value resulting in
wrong size of window decoration. Amusingly, the debug message right
above it uses the correct size.
Fix this by using the updated geometry size instead. Since now all
prepare_resize have parameters of 0, the width and height parameters
are no longer needed.
Fixes: 828dd65ef84b4d8e95e70752b9eb0833909d1d23
Diffstat (limited to 'ci')
0 files changed, 0 insertions, 0 deletions