summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-26 21:54:00 +0200
committerwm4 <wm4@nowhere>2014-05-26 21:59:30 +0200
commitd04ce8a7c230c8deb81fdf2a0c17d70c499ba77e (patch)
tree16df4fd1bc737bc6451f15d89a478c78539e2cc7
parent44e8a4085e74675598635089677c47524348d75f (diff)
downloadmpv-d04ce8a7c230c8deb81fdf2a0c17d70c499ba77e.tar.bz2
mpv-d04ce8a7c230c8deb81fdf2a0c17d70c499ba77e.tar.xz
x11: fix restoring position when leaving fullscreen
Accidentally broken in commit 7163bf7d by inverting the condition.
-rw-r--r--video/out/x11_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/x11_common.c b/video/out/x11_common.c
index 37855efa4e..6ca8be01f2 100644
--- a/video/out/x11_common.c
+++ b/video/out/x11_common.c
@@ -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,