diff options
author | nanahi <130121847+na-na-hi@users.noreply.github.com> | 2024-03-03 13:27:02 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-03-17 14:59:26 +0000 |
commit | f236e249a49d893b21a800a0f93618d3d1e13d6c (patch) | |
tree | 0b3ea009b5d6acbaafb92e3679e61ef537efd17c /video/out/x11_common.h | |
parent | 83da97f9558cad7839657635a8969ac87b66a5df (diff) | |
download | mpv-f236e249a49d893b21a800a0f93618d3d1e13d6c.tar.bz2 mpv-f236e249a49d893b21a800a0f93618d3d1e13d6c.tar.xz |
x11_common: fix window x/y position when updating geometry on runtime
Currently, setting geometry on runtime only changes the window size
but not the position. This is because reset_size is only set if
the window size is changed, and vo_x11_highlevel_resize doesn't set
the window position without force_window_position enabled. Fix this
by setting the related flags and perform a window move when
geometry is updated.
Fixes 8e793bde78f00fbb64223db30851c6d080c4abeb.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r-- | video/out/x11_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h index 8a3b145161..b8ebfe0328 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -114,6 +114,7 @@ struct vo_x11_state { * stays the same (even if that size is different from the current * window size after the user modified the latter). */ int old_dw, old_dh; + int old_x, old_y; /* Video size changed during fullscreen when we couldn't tell the new * size to the window manager. Must set window size when turning * fullscreen off. */ |