summaryrefslogtreecommitdiffstats
path: root/video/out/x11_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-01-27 07:47:47 +0100
committerwm4 <wm4@nowhere>2013-01-27 13:30:54 +0100
commit75164a0e0a409958d10f56b3dabea35914daeba3 (patch)
tree8bdb8b7742aaaa4fdd84658ade301bc957e38d31 /video/out/x11_common.h
parent0535a14505c367693fe729a3f1348c4ffd516af3 (diff)
downloadmpv-75164a0e0a409958d10f56b3dabea35914daeba3.tar.bz2
mpv-75164a0e0a409958d10f56b3dabea35914daeba3.tar.xz
x11: fix some obvious video mode switching bugs
The original video mode wasn't reliably restored, so just store the mode separately. For some reason, window decorations got into the picture, possibly due to an incorrect initial window position or something like this. Normally, the window is positioned and sized such that it covers the screen entirely, even though the window still has decorations and is not in fullscreen mode (fullscreen wouldn't be correct, because the virtual desktop size is not screen size). Hack-fix by forcing window decorations off when VM-switching. All in all, VM switching is still buggy and useless.
Diffstat (limited to 'video/out/x11_common.h')
-rw-r--r--video/out/x11_common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/x11_common.h b/video/out/x11_common.h
index ab3539b36b..8cafd15650 100644
--- a/video/out/x11_common.h
+++ b/video/out/x11_common.h
@@ -50,6 +50,7 @@ struct vo_x11_state {
int fs_flip;
int fs_layer;
int vm_set;
+ int vm_orig_w, vm_orig_h;
GC f_gc;
XSizeHints vo_hint;