diff options
author | Dudemanguy <random342@airmail.cc> | 2021-09-13 13:45:17 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2021-09-13 20:49:07 +0000 |
commit | 560e6c8709811038dfcd3ff8b789670a18649d17 (patch) | |
tree | 6d1a8be8c7991edd7afdd95c5244f04ec59905e4 /video/out/drm_atomic.c | |
parent | 62b2c5db982103f84d61e4abb0cc3a3aff077e1c (diff) | |
download | mpv-560e6c8709811038dfcd3ff8b789670a18649d17.tar.bz2 mpv-560e6c8709811038dfcd3ff8b789670a18649d17.tar.xz |
wayland: report correct window size when maximized
In wayland_common, wl->window_size keeps track of the window's size when
it is not in the fullscreen or maximized state. GET_UNFS_WINDOW_SIZE is
meant to report the size except for when it is fullscreen (hence UNFS).
However, the actual function was merely returning the wl->window_size so
it was wrong for maximized windows. Workaround this by returning
wl->geometry instead when we have the maximized case. Fixes #9207.
Diffstat (limited to 'video/out/drm_atomic.c')
0 files changed, 0 insertions, 0 deletions