mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 15:11:09 +08:00
x11: fix restoring position when leaving fullscreen
Accidentally broken in commit 7163bf7d by inverting the condition.
This commit is contained in:
@@ -1412,7 +1412,8 @@ static void vo_x11_fullscreen(struct vo *vo)
|
||||
|
||||
if (x11->wm_type & vo_wm_FULLSCREEN) {
|
||||
x11_set_ewmh_state(x11, "_NET_WM_STATE_FULLSCREEN", x11->fs);
|
||||
if (x11->fs && (x11->pos_changed_during_fs || x11->size_changed_during_fs))
|
||||
if (!x11->fs && (x11->pos_changed_during_fs ||
|
||||
x11->size_changed_during_fs))
|
||||
{
|
||||
vo_x11_move_resize(vo, x11->pos_changed_during_fs,
|
||||
x11->size_changed_during_fs,
|
||||
|
||||
Reference in New Issue
Block a user